Http.Request

Define a HTTP request.

Constructors

this
this(string uri = "/", Method method = Method.Get, string 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(string requestBody)

Set the body of the request.

setField
void setField(string field, string 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(string uri)

Set the requested URI.

Meta