19 #ifndef OF_HAVE_SOCKETS
20 # error No sockets available!
23 OF_ASSUME_NONNULL_BEGIN
39 #ifdef OF_HAVE_OPTIONAL_PROTOCOLS
69 statusCode: (
int)statusCode
92 shouldFollowRedirect: (
OFURL*)URL
93 statusCode: (
int)statusCode
104 id <OFHTTPClientDelegate> _delegate;
105 bool _insecureRedirectsAllowed;
112 #ifdef OF_HAVE_PROPERTIES
114 @property
bool insecureRedirectsAllowed;
122 + (instancetype)client;
143 - (void)setInsecureRedirectsAllowed: (
bool)allowed;
150 - (bool)insecureRedirectsAllowed;
169 redirects: (
size_t)redirects;
180 OF_ASSUME_NONNULL_END
A class for performing HTTP requests.
Definition: OFHTTPClient.h:102
The root class for all other classes inside ObjFW.
Definition: OFObject.h:364
A class for representing an HTTP request reply as a stream.
Definition: OFHTTPResponse.h:29
A class for handling strings.
Definition: OFString.h:91
A class for storing arbitrary data in an array.
Definition: OFDataArray.h:37
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:61
A class which provides functions to create and use TCP sockets.
Definition: OFTCPSocket.h:61
A class for storing HTTP requests.
Definition: OFHTTPRequest.h:73
A delegate for OFHTTPClient.
Definition: OFHTTPClient.h:38
A class for parsing URLs and accessing parts of it.
Definition: OFURL.h:29