Class HTTPServerRequest
Represents a HTTP request as received by the server side.
Constructors
Name | Description |
this
(time, port)
|
|
Fields
Name | Type | Description |
bodyReader
|
InputStream | Supplies the request body as a stream.
|
clientAddress
|
NetworkAddress | The IP address of the client
|
clientCertificate
|
TLSCertificateInformation | Information about the TLS certificate provided by the client.
|
context
|
DictionaryList!(std.variant.VariantN!(32L).VariantN,true,2L,false) | A map of context items for the request.
|
noLog
|
bool | Determines if the request should be logged to the access log file.
|
params
|
DictionaryList!(string,true,8L,false) | A map of general parameters for the request.
|
password
|
string | The password part of the URL, if present.
|
queryString
|
string | The query string part of the URL.
|
requestPath
|
GenericPath!(vibe.core.path.InetPathFormat) | The path part of the requested URI.
|
session
|
Session | The current Session object.
|
tls
|
bool | Determines if the request was issued over an TLS encrypted channel.
|
username
|
string | The user name part of the URL, if present.
|
headers
|
DictionaryList!(string,false,12L,false) | All request headers
|
httpVersion
|
HTTPVersion | The HTTP protocol version used for the request
|
method
|
HTTPMethod | The HTTP method of the request
|
requestURI
|
string | The request URI
|
m_conn
|
vibe.internal.interfaceproxy.InterfaceProxy!(vibe.core.stream.Stream) | |
Properties
Name | Type | Description |
cookies [get]
|
CookieValueMap | Contains the list of cookies that are stored on the client.
|
files [get]
|
DictionaryList!(vibe.inet.webform.FilePart,true,0L,false) | Contains information about any uploaded file for a HTML form request.
|
form [get]
|
DictionaryList!(string,true,16L,false) | Contains the parsed parameters of a HTML POST form request.
|
fullURL [get]
|
URL | The full URL that corresponds to this request.
|
json [get]
|
Json | Contains the parsed Json for a JSON request.
|
peer [get]
|
string | The IP address of the client in string form
|
query [get]
|
DictionaryList!(string,true,16L,false) | Contains all form fields supplied using the query string.
|
rootDir [get]
|
string | The relative path to the root folder.
|
timeCreated [get]
|
std.datetime.systime.SysTime | Time when this request started processing.
|
contentType [get, set]
|
string | Returns the mime type part of the 'Content-Type' header.
|
contentTypeParameters [get]
|
string | Returns any supplementary parameters of the 'Content-Type' header.
|
host [get, set]
|
string | Shortcut to the 'Host' header (always present for HTTP 1.1)
|
persistent [get]
|
bool | Determines if the connection persists across requests.
|
Methods
Name | Description |
path
()
|
The path part of the URL.
|
toString
()
|
|
Aliases
Name | Description |
requestURL
|
Compatibility alias - scheduled for deprecation
|