1 | /*
|
2 | * Copyright (c) Facebook, Inc. and its affiliates.
|
3 | *
|
4 | * This source code is licensed under the MIT license found in the
|
5 | * LICENSE file in the root directory of this source tree.
|
6 | */
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | typedef void (^RCTMultipartDataTaskCallback)(NSInteger statusCode, NSDictionary *headers, NSData *content, NSError *error, BOOL done);
|
13 |
|
14 | @interface RCTMultipartDataTask : NSObject
|
15 |
|
16 | - (instancetype)initWithURL:(NSURL *)url
|
17 | partHandler:(RCTMultipartDataTaskCallback)partHandler
|
18 | progressHandler:(RCTMultipartProgressCallback)progressHandler;
|
19 |
|
20 | - (void)startTask;
|
21 |
|
22 | @end
|