20 #ifndef OF_HAVE_SOCKETS
21 # error No sockets available!
24 OF_ASSUME_NONNULL_BEGIN
83 #ifdef OF_HAVE_PROPERTIES
84 @property (copy)
OFURL *URL;
87 @property OF_NULLABLE_PROPERTY (copy)
89 @property OF_NULLABLE_PROPERTY (retain)
OFDataArray *body;
90 @property OF_NULLABLE_PROPERTY (copy) OFString *remoteAddress;
98 + (instancetype)request;
106 + (instancetype)requestWithURL: (
OFURL*)URL;
114 - initWithURL: (
OFURL*)URL;
121 - (void)setURL: (
OFURL*)URL;
164 - (void)setProtocolVersionFromString: (OFString*)string;
171 - (OFString*)protocolVersionString;
179 (nullable
OFDictionary OF_GENERIC(OFString*, OFString*)*)headers;
186 - (nullable
OFDictionary OF_GENERIC(OFString*, OFString*)*)headers;
201 - (void)setBodyFromString: (nullable OFString*)string;
210 - (void)setBodyFromString: (nullable OFString*)string
225 - (void)setRemoteAddress: (nullable OFString*)remoteAddress;
232 - (nullable OFString*)remoteAddress;
259 OF_ASSUME_NONNULL_END
Definition: OFHTTPRequest.h:46
Definition: OFHTTPRequest.h:38
const char *OF_NULLABLE of_http_request_method_to_string(of_http_request_method_t method)
Returns a C string describing the specified request method.
Definition: OFHTTPRequest.m:33
of_string_encoding_t
The encoding of a string.
Definition: OFString.h:50
of_http_request_method_t
The type of an HTTP request.
Definition: OFHTTPRequest.h:36
The root class for all other classes inside ObjFW.
Definition: OFObject.h:364
Definition: OFHTTPRequest.h:44
Definition: OFHTTPRequest.h:52
A class for handling strings.
Definition: OFString.h:91
A class for storing arbitrary data in an array.
Definition: OFDataArray.h:37
Definition: OFHTTPRequest.h:48
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:61
uint8_t major
Definition: OFHTTPRequest.h:63
of_http_request_method_t of_http_request_method_from_string(const char *string)
Returns the request method for the specified string.
Definition: OFHTTPRequest.m:58
The HTTP version of the HTTP request.
Definition: OFHTTPRequest.h:61
A class for storing HTTP requests.
Definition: OFHTTPRequest.h:73
Definition: OFHTTPRequest.h:50
A protocol for the creation of copies.
Definition: OFObject.h:896
A class for parsing URLs and accessing parts of it.
Definition: OFURL.h:29
Definition: OFHTTPRequest.h:40
Definition: OFHTTPRequest.h:42
uint8_t minor
Definition: OFHTTPRequest.h:65