Class HTTPServerRequest
Represents a HTTP request as received by the server side.
Inherits from
-
(base class)HTTPRequest
Constructors
Name | Description |
---|---|
this
|
Fields
Name | Type | Description |
---|---|---|
bodyReader
|
InputStream |
Supplies the request body as a stream. |
clientAddress
|
NetworkAddress |
The IP address of the client |
cookies
|
CookieValueMap |
Contains the list of cookies that are stored on the client. |
files
|
vibe.utils.dictionarylist.__T14DictionaryListTS4vibe4inet7webform8FilePartVb1Z.DictionaryList |
Contains information about any uploaded file for a HTML form request. |
form
|
vibe.utils.dictionarylist.DictionaryList!(string,true) |
Contains the parsed parameters of a HTML POST form request. |
json
|
Json |
Contains the parsed Json for a JSON request. |
params
|
string[string] |
A map of general parameters for the request. |
password
|
string |
The password part of the URL, if present. |
path
|
string |
The path part of the URL. |
peer
|
string |
The IP address of the client |
query
|
vibe.utils.dictionarylist.DictionaryList!(string,true) |
Contains all form fields supplied using the query string. |
queryString
|
string |
The query string part of the URL. |
session
|
Session |
The current Session object. |
ssl
|
bool |
Determines if the request was issued over an SSL encrypted channel. |
username
|
string |
The user name part of the URL, if present. |
headers
|
vibe.utils.dictionarylist.DictionaryList!(string,false) |
All request headers |
httpVersion
|
HTTPVersion |
The HTTP protocol version used for the request |
method
|
HTTPMethod |
The HTTP method of the request |
requestURL
|
string |
The request URL |
m_conn
|
Stream |
Properties
Name | Type | Description |
---|---|---|
fullURL
[get]
|
URL |
The full URL that corresponds to this request. |
rootDir
[get]
|
string |
The relative path the the root folder.
|
timeCreated
[get]
|
inout(std.datetime.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 |
---|---|
toString
|
Authors
Sönke Ludwig, Jan Krüger, Ilya Shipunov
Copyright
© 2012-2013 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.