ObjFW
Classes | Enumerations | Functions
OFHTTPRequest.h File Reference
#import "OFObject.h"
#import "OFString.h"

Go to the source code of this file.

Classes

struct  of_http_request_protocol_version_t
 The HTTP version of the HTTP request. More...
 
class  OFHTTPRequest
 A class for storing HTTP requests. More...
 

Enumerations

enum  of_http_request_method_t {
  OF_HTTP_REQUEST_METHOD_OPTIONS, OF_HTTP_REQUEST_METHOD_GET, OF_HTTP_REQUEST_METHOD_HEAD, OF_HTTP_REQUEST_METHOD_POST,
  OF_HTTP_REQUEST_METHOD_PUT, OF_HTTP_REQUEST_METHOD_DELETE, OF_HTTP_REQUEST_METHOD_TRACE, OF_HTTP_REQUEST_METHOD_CONNECT
}
 The type of an HTTP request. More...
 

Functions

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. More...
 
of_http_request_method_t of_http_request_method_from_string (const char *string)
 Returns the request method for the specified string. More...
 

Enumeration Type Documentation

The type of an HTTP request.

Enumerator
OF_HTTP_REQUEST_METHOD_OPTIONS 

OPTIONS

OF_HTTP_REQUEST_METHOD_GET 

GET

OF_HTTP_REQUEST_METHOD_HEAD 

HEAD

OF_HTTP_REQUEST_METHOD_POST 

POST

OF_HTTP_REQUEST_METHOD_PUT 

PUT

OF_HTTP_REQUEST_METHOD_DELETE 

DELETE

OF_HTTP_REQUEST_METHOD_TRACE 

TRACE

OF_HTTP_REQUEST_METHOD_CONNECT 

CONNECT

Function Documentation

of_http_request_method_t of_http_request_method_from_string ( const char *  string)

Returns the request method for the specified string.

Parameters
stringThe string for which the request method should be returned
Returns
The request method for the specified string
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.

Parameters
methodThe request method which should be described as a C string
Returns
A C string describing the specified request method