Class HttpServerRequest
Represents a HTTP request as received by the server side.
Inherits from
-
HttpRequest
(base class)
Constructors
Name | Description |
---|---|
this |
Fields
Name | Type | Descrption |
---|---|---|
peer | string | The IP address of the client |
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 | string[string] | 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 |
url [inherited] | string | The full request URL |
headers [inherited] | StrMapCI | All request headers |
Properties
Name | Type | Description |
---|---|---|
timeCreated | inout(SysTime) | |
rootDir | string | The relative path the the root folder. |
host [inherited] | string | Shortcut to the 'Host' header (always present for HTTP 1.1) |
persistent [inherited] | bool | Determines if the connection persists across requests. |
Methods
Name | Description |
---|---|
nextPart |
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.