vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Class HTTPServerRequest

Represents a HTTP request as received by the server side.

class HTTPServerRequest
  : HTTPRequest ;


this (time, port)


bodyReader InputStreamSupplies the request body as a stream.
clientAddress NetworkAddressThe IP address of the client
clientCertificate TLSCertificateInformationInformation about the TLS certificate provided by the client.
cookies CookieValueMapContains the list of cookies that are stored on the client.
files DictionaryList!(vibe.inet.webform.FilePart,true,0L,false)Contains information about any uploaded file for a HTML form request.
form DictionaryList!(string,true,16L,false)Contains the parsed parameters of a HTML POST form request.
json JsonContains the parsed Json for a JSON request.
noLog boolDetermines 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 stringThe password part of the URL, if present.
path stringThe path part of the URL.
peer stringThe IP address of the client
query DictionaryList!(string,true,16L,false)Contains all form fields supplied using the query string.
queryString stringThe query string part of the URL.
session SessionThe current Session object.
tls boolDetermines if the request was issued over an TLS encrypted channel.
username stringThe user name part of the URL, if present.
headers DictionaryList!(string,false,12L,false)All request headers
httpVersion HTTPVersionThe HTTP protocol version used for the request
method HTTPMethodThe HTTP method of the request
requestURL stringThe request URL
m_conn Stream


fullURL[get] URLThe full URL that corresponds to this request.
rootDir[get] stringThe relative path to the root folder.
timeCreated[get] inout(std.datetime.SysTime)Time when this request started processing.
contentType[get, set] stringReturns the mime type part of the 'Content-Type' header.
contentTypeParameters[get] stringReturns any supplementary parameters of the 'Content-Type' header.
host[get, set] stringShortcut to the 'Host' header (always present for HTTP 1.1)
persistent[get] boolDetermines if the connection persists across requests.


toString ()

Sönke Ludwig, Jan Krüger, Ilya Shipunov


© 2012-2013 RejectedSoftware e.K.


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.