ObjFW
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
OFHTTPRequest.h File Reference
import "OFObject.h"
import "OFSocket.h"
import "OFString.h"

Go to the source code of this file.

Classes

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

Enumerations

enum  OFHTTPRequestMethod {
  OFHTTPRequestMethodOptions , OFHTTPRequestMethodGet , OFHTTPRequestMethodHead , OFHTTPRequestMethodPost ,
  OFHTTPRequestMethodPut , OFHTTPRequestMethodDelete , OFHTTPRequestMethodTrace , OFHTTPRequestMethodConnect
}
 The type of an HTTP request. More...
 

Functions

OFStringOFHTTPRequestMethodString (OFHTTPRequestMethod method)
 Returns a string describing the specified request method.
 
OFHTTPRequestMethod OFHTTPRequestMethodParseString (OFString *string)
 Returns the request method for the specified string.
 
const char * OFHTTPRequestMethodName (OFHTTPRequestMethod method)
 Returns a C string describing the specified request method.
 
OFHTTPRequestMethod OFHTTPRequestMethodParseName (OFString *string)
 Returns the request method for the specified string.
 

Enumeration Type Documentation

◆ OFHTTPRequestMethod

The type of an HTTP request.

Enumerator
OFHTTPRequestMethodOptions 

OPTIONS

OFHTTPRequestMethodGet 

GET

OFHTTPRequestMethodHead 

HEAD

OFHTTPRequestMethodPost 

POST

OFHTTPRequestMethodPut 

PUT

OFHTTPRequestMethodDelete 

DELETE

OFHTTPRequestMethodTrace 

TRACE

OFHTTPRequestMethodConnect 

CONNECT

Function Documentation

◆ OFHTTPRequestMethodName()

const char * OFHTTPRequestMethodName ( OFHTTPRequestMethod method)
extern

Returns a C string describing the specified request method.

Deprecated
Use OFHTTPRequestMethodString instead.
Parameters
methodThe request method which should be described as a C string
Returns
A C string describing the specified request method

◆ OFHTTPRequestMethodParseName()

OFHTTPRequestMethod OFHTTPRequestMethodParseName ( OFString * string)
extern

Returns the request method for the specified string.

Deprecated
Use OFHTTPRequestMethodParseString instead.
Parameters
stringThe string for which the request method should be returned
Returns
The request method for the specified string
Exceptions
OFInvalidFormatExceptionThe specified string is not a valid HTTP request method

◆ OFHTTPRequestMethodParseString()

OFHTTPRequestMethod OFHTTPRequestMethodParseString ( OFString * string)
extern

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
Exceptions
OFInvalidFormatExceptionThe specified string is not a valid HTTP request method

◆ OFHTTPRequestMethodString()

OFString * OFHTTPRequestMethodString ( OFHTTPRequestMethod method)
extern

Returns a string describing the specified request method.

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