Differences From Artifact [a914d1de62]:
- File src/OFHTTPRequest.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: 6643) [annotate] [blame] [check-ins using]
To Artifact [33eb5fdd58]:
- File
src/OFHTTPRequest.m
— part of check-in
[2f4e0df8be]
at
2017-10-17 00:33:37
on branch trunk
— Do not use implicit method return types
Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (user: js, size: 6675) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
87 88 89 90 91 92 93 | } + (instancetype)requestWithURL: (OFURL *)URL { return [[[self alloc] initWithURL: URL] autorelease]; } | | | | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | } + (instancetype)requestWithURL: (OFURL *)URL { return [[[self alloc] initWithURL: URL] autorelease]; } - (instancetype)init { self = [super init]; _method = OF_HTTP_REQUEST_METHOD_GET; _protocolVersion.major = 1; _protocolVersion.minor = 1; return self; } - (instancetype)initWithURL: (OFURL *)URL { self = [self init]; @try { _URL = [URL copy]; } @catch (id e) { [self release]; |
︙ | ︙ | |||
122 123 124 125 126 127 128 | [_headers release]; [_body release]; [_remoteAddress release]; [super dealloc]; } | | | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | [_headers release]; [_body release]; [_remoteAddress release]; [super dealloc]; } - (id)copy { OFHTTPRequest *copy = [[OFHTTPRequest alloc] init]; @try { copy->_method = _method; copy->_protocolVersion = _protocolVersion; [copy setURL: _URL]; |
︙ | ︙ |