Differences From Artifact [c4033f68e4]:
- File
src/OFHTTPRequest.h
— 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: 5139) [annotate] [blame] [check-ins using]
To Artifact [0bad35c687]:
- File
src/OFHTTPRequest.h
— part of check-in
[f3ccf14461]
at
2017-10-29 21:58:14
on branch trunk
— Convert methods to properties where appropriate
This improves Swift compatibility. (user: js, size: 4817) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
77 78 79 80 81 82 83 84 85 86 87 88 89 90 | } /*! * The URL of the HTTP request. */ @property (copy, nonatomic) OFURL *URL; /*! * The request method of the HTTP request. */ @property (nonatomic) of_http_request_method_t method; /*! * The headers for the HTTP request. | > > > > > > > > > > | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | } /*! * The URL of the HTTP request. */ @property (copy, nonatomic) OFURL *URL; /*! * The protocol version of the HTTP request. */ @property (nonatomic) of_http_request_protocol_version_t protocolVersion; /*! * The protocol version of the HTTP request as a string. */ @property (readonly, nonatomic) OFString *protocolVersionString; /*! * The request method of the HTTP request. */ @property (nonatomic) of_http_request_method_t method; /*! * The headers for the HTTP request. |
︙ | ︙ | |||
121 122 123 124 125 126 127 | * @brief Initializes an already allocated OFHTTPRequest with the specified URL. * * @param URL The URL for the request * @return An initialized OFHTTPRequest */ - (instancetype)initWithURL: (OFURL *)URL; | < < < < < < < < < < < < < < < < < < < < < | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | * @brief Initializes an already allocated OFHTTPRequest with the specified URL. * * @param URL The URL for the request * @return An initialized OFHTTPRequest */ - (instancetype)initWithURL: (OFURL *)URL; /*! * @brief Sets the protocol version of the HTTP request to the version * described by the specified string. * * @param string A string describing an HTTP version */ - (void)setProtocolVersionFromString: (OFString *)string; /*! * @brief Sets the entity body of the HTTP request to the specified string * encoded in UTF-8. * * @param string The string to use for the entity body */ - (void)setBodyFromString: (OFString *)string; |
︙ | ︙ |