vibe.d beta banner
get vibe.d
0.8.2

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 ;

Constructors

NameDescription
this

Fields

NameTypeDescription
bodyReaderInputStreamSupplies the request body as a stream.
clientAddressNetworkAddressThe IP address of the client
clientCertificateTLSCertificateInformationInformation about the TLS certificate provided by the client.
cookiesCookieValueMapContains the list of cookies that are stored on the client.
filesvibe.utils.dictionarylist.__T14DictionaryListTS4vibe4inet7webform8FilePartVbi1Vmi0Vbi0Z.DictionaryListContains information about any uploaded file for a HTML form request.
formDictionaryList!(string,true,16L,false)Contains the parsed parameters of a HTML POST form request.
jsonJsonContains the parsed Json for a JSON request.
noLogboolDetermines if the request should be logged to the access log file.
paramsDictionaryList!(string,true,8L,false)
passwordstringThe password part of the URL, if present.
pathstringThe path part of the URL.
peerstringThe IP address of the client
queryDictionaryList!(string,true,16L,false)Contains all form fields supplied using the query string.
queryStringstringThe query string part of the URL.
sessionSessionThe current Session object.
tlsboolDetermines if the request was issued over an TLS encrypted channel.
usernamestringThe user name part of the URL, if present.
headersDictionaryList!(string,false,12L,false)All request headers
httpVersionHTTPVersionThe HTTP protocol version used for the request
methodHTTPMethodThe HTTP method of the request
requestURLstringThe request URL
m_connStream

Properties

NameTypeDescription
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.

Methods

NameDescription
toString

Aliases

NameDescription
sslCompatibility alias - use tls instead.
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.