-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathPKMultipartInputStream.h
executable file
·21 lines (17 loc) · 1.15 KB
/
PKMultipartInputStream.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PKMultipartInputStream.h
#import <Foundation/Foundation.h>
@interface PKMultipartInputStream : NSInputStream
- (void)addPartWithName:(NSString *)name string:(NSString *)string;
- (void)addPartWithName:(NSString *)name data:(NSData *)data;
- (void)addPartWithName:(NSString *)name data:(NSData *)data contentType:(NSString *)type;
- (void)addPartWithName:(NSString *)name filename:(NSString*)filename data:(NSData *)data contentType:(NSString *)type;
- (void)addPartWithName:(NSString *)name path:(NSString *)path;
- (void)addPartWithName:(NSString *)name filename:(NSString *)filename path:(NSString *)path;
- (void)addPartWithName:(NSString *)name filename:(NSString *)filename path:(NSString *)path contentType:(NSString *)type;
- (void)addPartWithName:(NSString *)name filename:(NSString *)filename stream:(NSInputStream *)stream streamLength:(NSUInteger)streamLength;
- (void)addPartWithHeaders:(NSDictionary *)headers string:(NSString *)string;
- (void)addPartWithHeaders:(NSDictionary *)headers path:(NSString *)path;
@property (nonatomic, readonly, nonnull) NSString *boundary;
@property (nonatomic, readonly) NSUInteger length;
@end