Request

Constructors

this
this(HttpServerRequest request, Address remoteAddress, RouterContex routeContext)
Undocumented in source.

Alias This

_request

Members

Functions

actionId
string actionId()
Undocumented in source. Be warned that the author may not have intended to support it.
all
string[string] all(string[] keys)

Get all of the input and files for the request.

allFiles
UploadedFile[] allFiles()

Get an array of all of the files on the request.

auth
Auth auth()
Undocumented in source. Be warned that the author may not have intended to support it.
basicToken
string basicToken()

Get the basic token from the request headers.

bearerToken
string bearerToken()

Get the bearer token from the request headers.

cookie
string cookie(string key, string defaultValue)

Retrieve a cookie from the request.

exists
bool exists(string key)

Determine if the request contains a given input item key.

file
UploadedFile file(string key)

Retrieve a file from the request.

files
UploadedFile[] files(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
filled
bool filled(string[] keys)

Determine if the request contains a non-empty value for an input item.

flush
void flush()

Flush all of the old input from the session.

getBodyAsString
string getBodyAsString()
Undocumented in source. Be warned that the author may not have intended to support it.
getInputSource
string[string] getInputSource()
Undocumented in source. Be warned that the author may not have intended to support it.
getScheme
string getScheme()

Gets the request's scheme.

guardName
string guardName()
Undocumented in source. Be warned that the author may not have intended to support it.
has
bool has(string[] keys)

Determine if the request contains a given input item key.

hasAny
bool hasAny(string[] keys)

Determine if the request contains any of the given inputs.

hasFile
bool hasFile(string key)

Determine if the uploaded data contains a file.

hasSession
bool hasSession()

Whether the request contains a HttpSession object.

headerExists
bool headerExists(HttpHeader code)
Undocumented in source. Be warned that the author may not have intended to support it.
headerExists
bool headerExists(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
input
string input(string key, string defaults)
string[string] input()

Retrieve an input item from the request.

isRestful
bool isRestful()
Undocumented in source. Be warned that the author may not have intended to support it.
isRestful
void isRestful(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
routeGroup
string routeGroup()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

elapsed
int elapsed [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
fullUrl
string fullUrl [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
ip
string ip [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
json
JSONValue json [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
method
HttpMethod method [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
methodAsString
string methodAsString [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
path
string path [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
remoteAddr
Address remoteAddr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
session
bool session [@property setter]

Gets the HttpSession.

url
string url [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_request
HttpServerRequest _request;
Undocumented in source.

Meta