Class HttpServerRequest

Represents a HTTP request as received by the server side.

Inherits from

Constructors

Name Description
this

Fields

Name Type Descrption
peer string The IP address of the client
ssl bool Determines if the request was issued over an SSL encrypted channel.
path string The path part of the URL.
username string The user name part of the URL, if present.
password string The password part of the URL, if present.
queryString string The query string part of the URL.
cookies CookieValueMap Contains the list of cookies that are stored on the client.
query string[string] Contains all form fields supplied using the query string.
params string[string] A map of general parameters for the request.
bodyReader InputStream Supplies the request body as a stream.
json Json Contains the parsed Json for a JSON request.
form string[string] Contains the parsed parameters of a HTML POST form request.
files FilePart[string] Contains information about any uploaded file for a HTML form request.
session Session The current Session object.
httpVersion [inherited] HttpVersion The HTTP protocol version used for the request
method [inherited] HttpMethod The HTTP method of the request
requestUrl [inherited] string The request URL
headers [inherited] StrMapCI All request headers

Properties

Name Type Description
timeCreated inout(SysTime) Time when this request started processing.
fullUrl Url The full URL that corresponds to this request.
rootDir string The relative path the the root folder.
host [inherited] string Shortcut to the 'Host' header (always present for HTTP 1.1)
contentType [inherited] string Returns the mime type part of the 'Content-Type' header.
contentTypeParameters [inherited] string Returns any supplementary parameters of the 'Content-Type' header.
persistent [inherited] bool Determines if the connection persists across requests.

Aliases

Name Description
url [inherited] Please use requestUrl instead. This alias will be deprecated after the next release.

Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012 RejectedSoftware e.K.

License

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