Differences From Artifact [bceac768c7]:
- File
src/OFHTTPRequest.h
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 5120) [annotate] [blame] [check-ins using]
To Artifact [89b526595f]:
- File src/OFHTTPRequest.h — part of check-in [e7713d6300] at 2016-10-08 15:57:35 on branch trunk — Add cookies property to OFHTTP{Request,Response} (user: js, size: 5323) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFObject.h" #import "OFString.h" #ifndef OF_HAVE_SOCKETS # error No sockets available! #endif OF_ASSUME_NONNULL_BEGIN | > | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFObject.h" #import "OFString.h" #import "OFHTTPCookie.h" #ifndef OF_HAVE_SOCKETS # error No sockets available! #endif OF_ASSUME_NONNULL_BEGIN |
| ︙ | ︙ | |||
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
*/
@interface OFHTTPRequest: OFObject <OFCopying>
{
OFURL *_URL;
of_http_request_method_t _method;
of_http_request_protocol_version_t _protocolVersion;
OFDictionary OF_GENERIC(OFString*, OFString*) *_headers;
OFDataArray *_body;
OFString *_remoteAddress;
}
/*!
* The URL of the HTTP request.
*/
@property (copy) OFURL *URL;
/*!
* The request method of the HTTP request.
*/
@property of_http_request_method_t method;
/*!
* The headers for the HTTP request.
*/
@property OF_NULLABLE_PROPERTY (copy)
OFDictionary OF_GENERIC(OFString*, OFString*) *headers;
/*!
* The entity body of the HTTP request.
*/
@property OF_NULLABLE_PROPERTY (retain) OFDataArray *body;
/*!
* The remote address from which the request originates.
| > > > > > > > | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
*/
@interface OFHTTPRequest: OFObject <OFCopying>
{
OFURL *_URL;
of_http_request_method_t _method;
of_http_request_protocol_version_t _protocolVersion;
OFDictionary OF_GENERIC(OFString*, OFString*) *_headers;
OFArray OF_GENERIC(OFHTTPCookie*) *_cookies;
OFDataArray *_body;
OFString *_remoteAddress;
}
/*!
* The URL of the HTTP request.
*/
@property (copy) OFURL *URL;
/*!
* The request method of the HTTP request.
*/
@property of_http_request_method_t method;
/*!
* The headers for the HTTP request.
*/
@property OF_NULLABLE_PROPERTY (copy)
OFDictionary OF_GENERIC(OFString*, OFString*) *headers;
/*!
* The cookies for the HTTP request.
*/
@property OF_NULLABLE_PROPERTY (copy)
OFArray OF_GENERIC(OFHTTPCookie*) *cookies;
/*!
* The entity body of the HTTP request.
*/
@property OF_NULLABLE_PROPERTY (retain) OFDataArray *body;
/*!
* The remote address from which the request originates.
|
| ︙ | ︙ |