RNFetchBlobReqBuilder.h
1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// RNFetchBlobReqBuilder.h
// RNFetchBlob
//
// Created by Ben Hsieh on 2016/7/9.
// Copyright © 2016年 wkh237. All rights reserved.
//
#ifndef RNFetchBlobReqBuilder_h
#define RNFetchBlobReqBuilder_h
#import <Foundation/Foundation.h>
@interface RNFetchBlobReqBuilder : NSObject;
+(void) buildMultipartRequest:(NSDictionary *)options
taskId:(NSString *)taskId
method:(NSString *)method
url:(NSString *)url
headers:(NSDictionary *)headers
form:(NSArray *)form
onComplete:(void(^)(NSURLRequest * req, long bodyLength))onComplete;
+(void) buildOctetRequest:(NSDictionary *)options
taskId:(NSString *)taskId
method:(NSString *)method
url:(NSString *)url
headers:(NSDictionary *)headers
body:(NSString *)body
onComplete:(void(^)(NSURLRequest * req, long bodyLength))onComplete;
+(NSString *) getHeaderIgnoreCases:(NSString *)field fromHeaders:(NSMutableArray *) headers;
@end
#endif /* RNFetchBlobReqBuilder_h */