No Description

RNFetchBlobUtil.h 907B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // RNFetchBlobUtil.h
  3. // RNFetchBlob
  4. //
  5. // Created by Ben Hsieh on 2016/5/24.
  6. // Copyright © 2016年 suzuri04x2. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "RCTBridgeModule.h"
  10. #ifndef RNFetchBlobUtil_h
  11. #define RNFetchBlobUtil_h
  12. @class FetchBlobUtils;
  13. @interface FetchBlobUtils : NSObject <RCTBridgeModule, NSURLConnectionDelegate, NSURLConnectionDataDelegate> {
  14. NSString * taskId;
  15. int expectedBytes;
  16. int receivedBytes;
  17. NSMutableData * respData;
  18. RCTResponseSenderBlock callback;
  19. }
  20. @property (nonatomic) NSString * taskId;
  21. @property (nonatomic) int expectedBytes;
  22. @property (nonatomic) int receivedBytes;
  23. @property (nonatomic) NSMutableData * respData;
  24. @property (nonatomic) RCTResponseSenderBlock callback;
  25. - (id) init;
  26. - (id) delegate;
  27. - (void) sendRequest;
  28. + (NSMutableDictionary *) normalizeHeaders;
  29. @end
  30. #endif /* RNFetchBlobUtil_h */