Http

Base class for requests and responses.

Members

Functions

add
void add(Cookie cookie)

Adds a cookie to the response's header.

parse
bool parse(string )
Undocumented in source.

Properties

body_
T body_ [@property setter]

Sets the body of the request/response.

body_
string body_ [@property getter]

Gets the body of the request/response.

contentType
string contentType [@property setter]

Sets the response's content-type header.

cookies
string[string] cookies [@property getter]

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

method
string method [@property getter]

Gets the method used for the request.

Structs

Headers
struct Headers

Headers utility.

Variables

_body
string _body;
Undocumented in source.
_method
string _method;
Undocumented in source.
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.

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.

Meta