27 typedef enum of_http_request_type_t {
28 OF_HTTP_REQUEST_TYPE_GET,
29 OF_HTTP_REQUEST_TYPE_POST,
30 OF_HTTP_REQUEST_TYPE_HEAD
31 } of_http_request_type_t;
36 #ifndef OF_HTTP_REQUEST_M
41 #ifdef OF_HAVE_OPTIONAL_PROTOCOLS
67 withStatusCode: (
int)statusCode;
79 didReceiveData: (const
char*)data
80 withLength: (
size_t)length;
100 willFollowRedirectTo: (
OFURL*)URL;
113 id <OFHTTPRequestDelegate>
delegate;
117 #ifdef OF_HAVE_PROPERTIES
118 @property (copy)
OFURL *URL;
119 @property of_http_request_type_t requestType;
120 @property (copy)
OFString *queryString;
122 @property BOOL redirectsFromHTTPSToHTTPAllowed;
123 @property (assign) id <OFHTTPRequestDelegate> delegate;
124 @property BOOL storesData;
132 + (instancetype)request;
140 + (instancetype)requestWithURL: (
OFURL*)URL;
148 - initWithURL: (
OFURL*)URL;
155 - (void)setURL: (
OFURL*)URL;
169 - (void)setRequestType: (of_http_request_type_t)requestType;
176 - (of_http_request_type_t)requestType;
183 - (void)setQueryString: (
OFString*)queryString;
211 - (void)setRedirectsFromHTTPSToHTTPAllowed: (BOOL)allowed;
218 - (BOOL)redirectsFromHTTPSToHTTPAllowed;
242 - (void)setStoresData: (BOOL)storesData;
279 #ifdef OF_HAVE_PROPERTIES
280 @property (readonly)
short statusCode;
285 - initWithStatusCode: (
short)status
316 extern Class of_http_request_tls_socket_class;