HttpImpl.HttpImpl

Undocumented in source.

Constructors

this
this(string method, string path, string body_)
Undocumented in source.

Members

Functions

parse
bool parse(string data)
Undocumented in source. Be warned that the author may not have intended to support it.
redirect
void redirect(Status status, string location)
void redirect(string location)
void redirect(uint statusCode, string location)

Creates a 3xx redirect response and adds the Location field to the header. If not specified status code 301 Moved Permanently will be used.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

url
URL url [@property getter]

Gets the url of the request. url.path can be used to retrive the path and url.queryParams to retrive the query parameters.

Variables

address
NetworkAddress address;
Undocumented in source.
ready
bool ready;
Undocumented in source.
send
void delegate() send;
Undocumented in source.

Inherited Members

From Http

Headers
struct Headers

Headers utility.

_method
string _method;
Undocumented in source.
status
Status status;

Gets and sets the status of the request/response. The value can be one of the enum StatusCodes or a custom status using the Status struct.

headers
Headers headers;

Gets the header manager of the request/response. The available methods are the same of the associative array's except that keys are case-insensitive.

_body
string _body;
Undocumented in source.
method
string method [@property getter]

Gets the method used for the request.

cookies
string[string] cookies [@property getter]

Gets the cookies sent in the Cookie header in the request. This property is lazily initialized.

add
void add(Cookie cookie)

Adds a cookie to the response's header.

body_
string body_ [@property getter]

Gets the body of the request/response.

body_
T body_ [@property setter]

Sets the body of the request/response.

contentType
string contentType [@property setter]

Sets the response's content-type header.

parse
bool parse(string )
Undocumented in source.

Meta