Differences From Artifact [09fa3de57a]:
- File
utils/ofhttp/OFHTTP.m
— part of check-in
[c9621825fc]
at
2017-06-04 18:48:03
on branch trunk
— Treat MorphOS + ixemul as a separate platform
This reduces the ifdef hell and makes much more sense, as with ixemul,
no native calls are allowed. (user: js, size: 25120) [annotate] [blame] [check-ins using]
To Artifact [1f66bff7ec]:
- File utils/ofhttp/OFHTTP.m — part of check-in [c8f7b90082] at 2017-07-22 20:50:27 on branch trunk — Split OFDataArray into OFData and OFMutableData (user: js, size: 25099) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
14 15 16 17 18 19 20 | * file. */ #include "config.h" #import "OFApplication.h" #import "OFArray.h" | | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #import "OFApplication.h" #import "OFArray.h" #import "OFData.h" #import "OFDictionary.h" #import "OFFile.h" #import "OFFileManager.h" #import "OFHTTPClient.h" #import "OFHTTPRequest.h" #import "OFHTTPResponse.h" #import "OFOptionsParser.h" |
| ︙ | ︙ | |||
55 56 57 58 59 60 61 |
@interface OFHTTP: OFObject <OFHTTPClientDelegate>
{
OFArray OF_GENERIC(OFString *) *_URLs;
size_t _URLIndex;
int _errorCode;
OFString *_outputPath;
bool _continue, _force, _detectFileName, _quiet, _verbose, _insecure;
| | | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
@interface OFHTTP: OFObject <OFHTTPClientDelegate>
{
OFArray OF_GENERIC(OFString *) *_URLs;
size_t _URLIndex;
int _errorCode;
OFString *_outputPath;
bool _continue, _force, _detectFileName, _quiet, _verbose, _insecure;
OFData *_body;
of_http_request_method_t _method;
OFMutableDictionary *_clientHeaders;
OFHTTPClient *_HTTPClient;
char *_buffer;
OFStream *_output;
intmax_t _received, _length, _resumedFrom;
ProgressBar *_progressBar;
|
| ︙ | ︙ | |||
163 164 165 166 167 168 169 |
- (void)setBody: (OFString *)file
{
[_body release];
if ([file isEqual: @"-"]) {
void *pool = objc_autoreleasePoolPush();
| | | | 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
- (void)setBody: (OFString *)file
{
[_body release];
if ([file isEqual: @"-"]) {
void *pool = objc_autoreleasePoolPush();
_body = [[of_stdin readDataUntilEndOfStream] copy];
objc_autoreleasePoolPop(pool);
} else
_body = [[OFData alloc] initWithContentsOfFile: file];
}
- (void)setMethod: (OFString *)method
{
void *pool = objc_autoreleasePoolPush();
method = [method uppercaseString];
|
| ︙ | ︙ |