Http.Request

Define a HTTP request.

Constructors

this
this(const(char)[] uri, Method method, const(char)[] requestBody)

This constructor creates a GET request, with the root URI ("/") and an empty body.

Destructor

~this
~this()

Destructor

Members

Enums

Method
enum Method

Enumerate the available HTTP methods for a request.

Functions

setBody
void setBody(const(char)[] requestBody)

Set the body of the request.

setField
void setField(const(char)[] field, const(char)[] value)

Set the value of a field.

setHttpVersion
void setHttpVersion(uint major, uint minor)

Set the HTTP version for the request.

setMethod
void setMethod(Method method)

Set the request method.

setUri
void setUri(const(char)[] uri)

Set the requested URI.

Variables

sfPtrRequest
sfHttpRequest* sfPtrRequest;
Undocumented in source.

Meta