-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
917 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
SQDebug/AFNetworking/AFNetworking-4.0.1-Debug/AFNetworking-Debug/SQHTTPBodyPart.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// SQHTTPBodyPart.h | ||
// AFNetworking-Debug | ||
// | ||
// Created by 朱双泉 on 2020/11/23. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
NSString * SQCreateMultipartFormBoundary(void); | ||
|
||
NSString * SQMultipartFormInitialBoundary(NSString *boundary); | ||
|
||
NSString * SQMultipartFormEncapsulationBoundary(NSString *boundary); | ||
|
||
NSString * SQMultipartFormFinalBoundary(NSString *boundary); | ||
|
||
NSString * SQContentTypeForPathExtension(NSString *extension); | ||
|
||
@interface SQHTTPBodyPart : NSObject | ||
|
||
@property (nonatomic, assign) NSStringEncoding stringEncoding; | ||
@property (nonatomic, strong) NSDictionary *headers; | ||
@property (nonatomic, copy) NSString *boundary; | ||
@property (nonatomic, strong) id body; | ||
@property (nonatomic, assign) unsigned long long bodyContentLength; | ||
@property (nonatomic, assign) NSInputStream *inputStream; | ||
|
||
@property (nonatomic, assign) BOOL hasInitialBoundary; | ||
@property (nonatomic, assign) BOOL hasFinalBoundary; | ||
|
||
@property (readonly, nonatomic, assign, getter=hasBytesAvailable) BOOL bytesAvailable; | ||
@property (readonly, nonatomic, assign) unsigned long long contentLength; | ||
|
||
- (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)length; | ||
|
||
- (NSString *)stringForHeaders; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.