26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
@class OFString;
/*! @file */
/*!
* @brief The type of an HTTP request.
*/
typedef enum of_http_request_method_t {
/*! OPTIONS */
OF_HTTP_REQUEST_METHOD_OPTIONS,
/*! GET */
OF_HTTP_REQUEST_METHOD_GET,
/*! HEAD */
OF_HTTP_REQUEST_METHOD_HEAD,
/*! POST */
OF_HTTP_REQUEST_METHOD_POST,
/*! PUT */
OF_HTTP_REQUEST_METHOD_PUT,
/*! DELETE */
OF_HTTP_REQUEST_METHOD_DELETE,
/*! TRACE */
OF_HTTP_REQUEST_METHOD_TRACE,
/*! CONNECT */
OF_HTTP_REQUEST_METHOD_CONNECT
} of_http_request_method_t;
/*!
* @brief The HTTP version of the HTTP request.
*/
typedef struct of_http_request_protocol_version_t {
/*! The major of the HTTP version */
uint8_t major;
/*! The minor of the HTTP version */
uint8_t minor;
} of_http_request_protocol_version_t;
/*!
* @brief A class for storing HTTP requests.
*/
@interface OFHTTPRequest: OFObject <OFCopying>
{
OFURL *_URL;
of_http_request_method_t _method;
of_http_request_protocol_version_t _protocolVersion;
|
|
>
>
>
|
>
>
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
@class OFString;
/*! @file */
/*!
* @brief The type of an HTTP request.
*/
typedef enum {
/*! OPTIONS */
OF_HTTP_REQUEST_METHOD_OPTIONS,
/*! GET */
OF_HTTP_REQUEST_METHOD_GET,
/*! HEAD */
OF_HTTP_REQUEST_METHOD_HEAD,
/*! POST */
OF_HTTP_REQUEST_METHOD_POST,
/*! PUT */
OF_HTTP_REQUEST_METHOD_PUT,
/*! DELETE */
OF_HTTP_REQUEST_METHOD_DELETE,
/*! TRACE */
OF_HTTP_REQUEST_METHOD_TRACE,
/*! CONNECT */
OF_HTTP_REQUEST_METHOD_CONNECT
} of_http_request_method_t;
/*!
* @struct of_http_request_protocol_version_t \
* OFHTTPRequest.h ObjFW/OFHTTPRequest.h
*
* @brief The HTTP version of the HTTP request.
*/
typedef struct {
/*! The major of the HTTP version */
uint8_t major;
/*! The minor of the HTTP version */
uint8_t minor;
} of_http_request_protocol_version_t;
/*!
* @class OFHTTPRequest OFHTTPRequest.h ObjFW/OFHTTPRequest.h
*
* @brief A class for storing HTTP requests.
*/
@interface OFHTTPRequest: OFObject <OFCopying>
{
OFURL *_URL;
of_http_request_method_t _method;
of_http_request_protocol_version_t _protocolVersion;
|