Nenhuma descrição

RNFetchBlobReqBuilder.h 1.5KB

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