HTTPRequest

Represents an HTTP request made to a server.

Constructors

this
this(InterfaceProxy!Stream conn)
Undocumented in source.
this
this()
Undocumented in source.

Members

Aliases

requestURL
alias requestURL = requestURI

Compatibility alias - scheduled for deprecation

Functions

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

Properties

contentType
string contentType [@property setter]

Returns the mime type part of the 'Content-Type' header.

contentType
string contentType [@property getter]

Returns the mime type part of the 'Content-Type' header.

contentTypeParameters
string contentTypeParameters [@property getter]

Returns any supplementary parameters of the 'Content-Type' header.

host
string host [@property getter]
string host [@property setter]

Shortcut to the 'Host' header (always present for HTTP 1.1)

persistent
bool persistent [@property getter]

Determines if the connection persists across requests.

Variables

headers
InetHeaderMap headers;

All request headers

httpVersion
HTTPVersion httpVersion;

The HTTP protocol version used for the request

m_conn
InterfaceProxy!Stream m_conn;
Undocumented in source.
method
HTTPMethod method;

The HTTP method of the request

requestURI
string requestURI;

The request URI

Meta