24OF_ASSUME_NONNULL_BEGIN
72OF_SUBCLASSING_RESTRICTED
80 bool _hasRemoteAddress;
86@property (copy, nonatomic)
OFIRI *IRI;
114@property OF_NULLABLE_PROPERTY (
copy, nonatomic)
130+ (instancetype)requestWithIRI: (
OFIRI *)IRI;
138- (instancetype)initWithIRI: (
OFIRI *)IRI;
140- (instancetype)
init OF_UNAVAILABLE;
174 OF_DEPRECATED(ObjFW, 1, 1,
"Use OFHTTPRequestMethodString instead");
187 OF_DEPRECATED(ObjFW, 1, 1,
"Use OFHTTPRequestMethodParseString instead");
OFHTTPRequestMethod
The type of an HTTP request.
Definition OFHTTPRequest.h:36
@ OFHTTPRequestMethodHead
Definition OFHTTPRequest.h:42
@ OFHTTPRequestMethodTrace
Definition OFHTTPRequest.h:50
@ OFHTTPRequestMethodDelete
Definition OFHTTPRequest.h:48
@ OFHTTPRequestMethodPut
Definition OFHTTPRequest.h:46
@ OFHTTPRequestMethodOptions
Definition OFHTTPRequest.h:38
@ OFHTTPRequestMethodGet
Definition OFHTTPRequest.h:40
@ OFHTTPRequestMethodPost
Definition OFHTTPRequest.h:44
@ OFHTTPRequestMethodConnect
Definition OFHTTPRequest.h:52
OFHTTPRequestMethod OFHTTPRequestMethodParseName(OFString *string)
Returns the request method for the specified string.
Definition OFHTTPRequest.m:93
OFHTTPRequestMethod OFHTTPRequestMethodParseString(OFString *string)
Returns the request method for the specified string.
Definition OFHTTPRequest.m:62
OFString * OFHTTPRequestMethodString(OFHTTPRequestMethod method)
Returns a string describing the specified request method.
Definition OFHTTPRequest.m:37
const char * OFHTTPRequestMethodName(OFHTTPRequestMethod method)
Returns a C string describing the specified request method.
Definition OFHTTPRequest.m:86
A class for storing arbitrary data in an array.
Definition OFData.h:46
An abstract class for storing objects in a dictionary.
Definition OFDictionary.h:84
A class for storing HTTP requests.
Definition OFHTTPRequest.h:75
OFHTTPRequestProtocolVersion protocolVersion
The protocol version of the HTTP request.
Definition OFHTTPRequest.m:225
OFString * protocolVersionString
The protocol version of the HTTP request as a string.
Definition OFHTTPRequest.m:247
const OFSocketAddress * remoteAddress
The remote address from which the request originates.
Definition OFHTTPRequest.m:144
OFDictionary * headers
The headers for the HTTP request.
Definition OFHTTPRequest.h:116
OFHTTPRequestMethod method
The request method of the HTTP request.
Definition OFHTTPRequest.h:110
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:692
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696
id copy()
Returns the class.
Definition OFObject.m:1407
A class for handling strings.
Definition OFString.h:143
A protocol for the creation of copies.
Definition OFObject.h:1354
The HTTP version of the HTTP request.
Definition OFHTTPRequest.h:60
unsigned char minor
Definition OFHTTPRequest.h:64
unsigned char major
Definition OFHTTPRequest.h:62
A struct which represents a host / port pair for a socket.
Definition OFSocket.h:189