23#ifndef OF_HAVE_SOCKETS
24# error No sockets available!
27OF_ASSUME_NONNULL_BEGIN
31@class OFHTTPClientResponse;
57 exception: (nullable
id)exception;
111 wantsRequestBody: (
OFStream *)requestBody
125 statusCode: (
short)statusCode
153 shouldFollowRedirectToIRI: (
OFIRI *)IRI
154 statusCode: (
short)statusCode
164OF_SUBCLASSING_RESTRICTED
167#ifdef OF_HTTP_CLIENT_M
170 OFObject <OFHTTPClientDelegate> *_Nullable _delegate;
171 bool _allowsInsecureRedirects, _inProgress;
173 OFIRI *_Nullable _lastIRI;
175 OFHTTPClientResponse *_Nullable _lastResponse;
181@property OF_NULLABLE_PROPERTY (assign, nonatomic)
232 redirects: (
unsigned int)redirects;
252 redirects: (
unsigned int)redirects;
265 redirects: (
unsigned int)redirects
OFConstantString * OFRunLoopMode
A mode for an OFRunLoop.
Definition OFRunLoop.h:46
An abstract class for storing objects in a dictionary.
Definition OFDictionary.h:84
A class for performing HTTP requests.
Definition OFHTTPClient.h:166
void close()
Closes connections that are still open due to keep-alive.
Definition OFHTTPClient.m:1362
instancetype client()
Creates a new OFHTTPClient.
Definition OFHTTPClient.m:1272
OFObject< OFHTTPClientDelegate > * delegate
The delegate of the HTTP request.
Definition OFHTTPClient.h:182
bool allowsInsecureRedirects
Whether the HTTP client allows redirects from HTTPS to HTTP.
Definition OFHTTPClient.h:187
A class for storing HTTP requests.
Definition OFHTTPRequest.h:75
A class for representing an HTTP request response as a stream.
Definition OFHTTPResponse.h:37
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition OFIRI.h:41
The root class for all other classes inside ObjFW.
Definition OFObject.h:956
A base class for different types of streams.
Definition OFStream.h:280
A class for handling strings.
Definition OFString.h:143
A class which provides methods to create and use TCP sockets.
Definition OFTCPSocket.h:86
A class that provides Transport Layer Security on top of a stream.
Definition OFTLSStream.h:102