ObjFW  Diff

Differences From Artifact [cce5af40ca]:

To Artifact [e0785471fb]:


155
156
157
158
159
160
161
162

163
164
165
166
167
168
169
170
171
172
173


174
175
176
177
178
179
180
181
155
156
157
158
159
160
161

162
163
164
165
166
167
168
169
170
171


172
173
174
175
176
177
178
179
180
181







-
+









-
-
+
+








 * @return A new, autoreleased OFHTTPClient
 */
+ (instancetype)client;

/*!
 * @brief Asynchronously performs the specified HTTP request.
 */
- (void)performRequest: (OFHTTPRequest *)request;
- (void)asyncPerformRequest: (OFHTTPRequest *)request;

/*!
 * @brief Asynchronously performs the specified HTTP request.
 *
 * @param request The request to perform
 * @param redirects The maximum number of redirects after which no further
 *		    attempt is done to follow the redirect, but instead the
 *		    redirect is treated as an OFHTTPResponse
 */
- (void)performRequest: (OFHTTPRequest *)request
	     redirects: (unsigned int)redirects;
- (void)asyncPerformRequest: (OFHTTPRequest *)request
		  redirects: (unsigned int)redirects;

/*!
 * @brief Closes connections that are still open due to keep-alive.
 */
- (void)close;
@end

OF_ASSUME_NONNULL_END