Class HTTPServerRequest
Represents a HTTP request as received by the server side.
Inherits from
-
HTTPRequest
(base class)
Constructors
Name | Description |
---|---|
this |
Fields
Name | Type | Description |
---|---|---|
bodyReader | InputStream | Supplies the request body as a stream. |
cookies | CookieValueMap | Contains the list of cookies that are stored on the client. |
files | FilePart[string] | Contains information about any uploaded file for a HTML form request. |
form | string[string] | 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 | string[string] | 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 | InetHeaderMap | 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 |
Properties
Name | Type | Description |
---|---|---|
fullURL | URL | The full URL that corresponds to this request. |
rootDir | string | The relative path the the root folder. |
timeCreated | inout(SysTime) | Time when this request started processing. |
contentType | string | Returns the mime type part of the 'Content-Type' header. |
contentTypeParameters | string | Returns any supplementary parameters of the 'Content-Type' header. |
host | string | Shortcut to the 'Host' header (always present for HTTP 1.1) |
persistent | bool | Determines if the connection persists across requests. |
Aliases
Name | Description |
---|---|
fullUrl | Compatibility alias, will be deprecated soon. |
requestUrl | Compatibility alias, will be deprecated soon. |
url | Please use requestURL instead. |
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.