Description

A class that helps wrap Request information and particulars about a single request. Provides methods commonly used to introspect on the request headers and request body.

Properties

Methods

InheritedAbstractFinalStaticDatatypeHeader
boolbool _paramDetector(Json[string] detect)
Json[string]Json[string] getAttributes()
boolbool _headerDetector(Json[string] detectorOptions)
withCookieCollection(DCookieCollectionwithCookieCollection(DCookieCollection cookies)
autoauto withCookieParams(Json[string] cookies)
stringstring scheme()
stringstring port()
autoauto withParsedBody(someData)
autoauto withoutAttribute(string aName)
boolbool initialize(Json[string] initData = null)
string[]string[] getTrustedProxies()
stringstring getHeaderLine(string headerName)
this(Json[string]this(Json[string] configData = null)
voidvoid clearDetectorCache()
stringstring getMethod()
autoauto withEnviroment(string key, string value)
IStreamIStream getBody()
Json[string]Json[string] getServerParams()
DSessionDSession getSession()
string[]string[] getCookie(string[] path, string[] defaultValue = null)
IUploadedFileIUploadedFile getUploadedFile(string aPath)
autoauto withData(string pathToInsert, Json value)
STRINGAASTRINGAA getHeaders()
stringstring referer(bool local = true)
Json[string]Json[string] queryArguments()
stringstring contentType()
JsonJson acceptLanguage(string languageToTest = null)
string[]string[] subdomains(int tldLength = 1)
voidvoid setTrustedProxies(Json[string] proxies)
stringstring normalizeHeaderName(string headerName)
withHeader(stringwithHeader(string headerName, string[] headerValue)
JsonJson getQuery(string[] path, Json defaultValue = Json(null))
withoutData(stringwithoutData(string aName)
voidvoid _setConfig(Json[string] configData = null)
stringstring host()
DServerRequestDServerRequest withoutHeader(string aName)
boolbool _acceptHeaderDetector(Json[string] detect)
autoauto validateUploadedFiles(Json[string] uploadedFiles, string path)
JsonJson getData(string valueName = null, Json defaultValue = Json(null))
autoauto withParam(string insertPath, Json valueToInsert)
Json[string]Json[string] processUrlOption(Json[string] configData = null)
voidvoid addDetector(string detectorName, DClosure/* array */ detector)
JsonJson getQuery(string name = null, Json defaultValue = Json(null))
stringstring getEnvironmentData(string key, string defaultValue = null)
DFlashMessageDFlashMessage getFlash()
DServerRequestDServerRequest withMethod(string httpMethod)
voidvoid addDetector(string name, Json[string] detector)
stringstring getRequestTarget()
boolbool isAll(Json[string] types)
boolbool allowMethod(string[] amethods)
withUploadedFiles(Json[string]withUploadedFiles(Json[string] uploadedFiles)
string[]string[] getHeader(string headerName)
DServerRequestDServerRequest withQueryParams(string queryString)
stringstring clientIp()
autoauto withAddedHeader(string headerName, headerValue)
autoauto withProtocolVersion(string aversion)
boolbool _environmentDetector(Json[string] detect)
boolbool hasHeader(string headerName)
string[]string[] getCookie(string key, string[] defaultValue = null)
JsonJson getAttribute(string attributeName, Json defaultValue = Json(null))
string[]string[] accepts(string contentType = null)
Json[string]Json[string] getUploadedFiles()
this(Json[string]this(Json[string] initData)
stringstring domain(int tldLength = 1)
IRequestIRequest withRequestTarget(string requestTarget)
stringstring getPath()
Json[string]Json[string] getCookieParams()
stringstring getProtocolVersion()
autoauto withBody(IStream body)
boolbool _is(string requestType, Json[string] someArguments)
JsonJson getParam(string path, Json defaultValue = Json(null))
withUri(IUriwithUri(IUri anUri, bool preserveHost = false)
boolbool __call(string methodName, Json[string] params)
this()this()
DCookieCollectionDCookieCollection getCookieCollection()
IUriIUri getUri()
DServerRequestDServerRequest withAttribute(string attributeName, Json aValue)