22 #ifndef OF_HAVE_SOCKETS 23 # error No sockets available! 26 OF_ASSUME_NONNULL_BEGIN
55 exception: (nullable
id)exception;
98 wantsRequestBody: (
OFStream *)requestBody
112 statusCode: (
short)statusCode
140 shouldFollowRedirectToIRI: (
OFIRI *)IRI
141 statusCode: (
short)statusCode
151 OF_SUBCLASSING_RESTRICTED
154 #ifdef OF_HTTP_CLIENT_M 158 bool _allowsInsecureRedirects, _inProgress;
160 OFIRI *_Nullable _lastIRI;
168 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
174 @property (nonatomic)
bool allowsInsecureRedirects;
181 + (instancetype)client;
219 redirects: (
unsigned int)redirects;
239 redirects: (
unsigned int)redirects;
247 OF_ASSUME_NONNULL_END
A class for performing HTTP requests.
Definition: OFHTTPClient.h:152
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
A class that provides Transport Layer Security on top of a stream.
Definition: OFTLSStream.h:75
A class for representing an HTTP request response as a stream.
Definition: OFHTTPResponse.h:36
A base class for different types of streams.
Definition: OFStream.h:278
A class for handling strings.
Definition: OFString.h:142
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:82
A class which provides methods to create and use TCP sockets.
Definition: OFTCPSocket.h:85
A class for storing HTTP requests.
Definition: OFHTTPRequest.h:73
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition: OFIRI.h:39
A delegate for OFHTTPClient.
Definition: OFHTTPClient.h:35