Nessuna descrizione

RNFetchBlobReqBuilder.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. +(NSString *) getHeaderIgnoreCases:(NSString *)field fromHeaders:(NSMutableArray *) headers;
  27. @end
  28. #endif /* RNFetchBlobReqBuilder_h */