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.
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
bool | bool _paramDetector(Json[string] detect) | ||||
Json[string] | Json[string] getAttributes() | ||||
bool | bool _headerDetector(Json[string] detectorOptions) | ||||
withCookieCollection(DCookieCollection | withCookieCollection(DCookieCollection cookies) | ||||
auto | auto withCookieParams(Json[string] cookies) | ||||
string | string scheme() | ||||
string | string port() | ||||
auto | auto withParsedBody(someData) | ||||
auto | auto withoutAttribute(string aName) | ||||
bool | bool initialize(Json[string] initData = null) | ||||
string[] | string[] getTrustedProxies() | ||||
string | string getHeaderLine(string headerName) | ||||
this(Json[string] | this(Json[string] configData = null) | ||||
void | void clearDetectorCache() | ||||
string | string getMethod() | ||||
auto | auto withEnviroment(string key, string value) | ||||
IStream | IStream getBody() | ||||
Json[string] | Json[string] getServerParams() | ||||
DSession | DSession getSession() | ||||
string[] | string[] getCookie(string[] path, string[] defaultValue = null) | ||||
IUploadedFile | IUploadedFile getUploadedFile(string aPath) | ||||
auto | auto withData(string pathToInsert, Json value) | ||||
STRINGAA | STRINGAA getHeaders() | ||||
string | string referer(bool local = true) | ||||
Json[string] | Json[string] queryArguments() | ||||
string | string contentType() | ||||
Json | Json acceptLanguage(string languageToTest = null) | ||||
string[] | string[] subdomains(int tldLength = 1) | ||||
void | void setTrustedProxies(Json[string] proxies) | ||||
string | string normalizeHeaderName(string headerName) | ||||
withHeader(string | withHeader(string headerName, string[] headerValue) | ||||
Json | Json getQuery(string[] path, Json defaultValue = Json(null)) | ||||
withoutData(string | withoutData(string aName) | ||||
void | void _setConfig(Json[string] configData = null) | ||||
string | string host() | ||||
DServerRequest | DServerRequest withoutHeader(string aName) | ||||
bool | bool _acceptHeaderDetector(Json[string] detect) | ||||
auto | auto validateUploadedFiles(Json[string] uploadedFiles, string path) | ||||
Json | Json getData(string valueName = null, Json defaultValue = Json(null)) | ||||
auto | auto withParam(string insertPath, Json valueToInsert) | ||||
Json[string] | Json[string] processUrlOption(Json[string] configData = null) | ||||
void | void addDetector(string detectorName, DClosure/* array */ detector) | ||||
Json | Json getQuery(string name = null, Json defaultValue = Json(null)) | ||||
string | string getEnvironmentData(string key, string defaultValue = null) | ||||
DFlashMessage | DFlashMessage getFlash() | ||||
DServerRequest | DServerRequest withMethod(string httpMethod) | ||||
void | void addDetector(string name, Json[string] detector) | ||||
string | string getRequestTarget() | ||||
bool | bool isAll(Json[string] types) | ||||
bool | bool allowMethod(string[] amethods) | ||||
withUploadedFiles(Json[string] | withUploadedFiles(Json[string] uploadedFiles) | ||||
string[] | string[] getHeader(string headerName) | ||||
DServerRequest | DServerRequest withQueryParams(string queryString) | ||||
string | string clientIp() | ||||
auto | auto withAddedHeader(string headerName, headerValue) | ||||
auto | auto withProtocolVersion(string aversion) | ||||
bool | bool _environmentDetector(Json[string] detect) | ||||
bool | bool hasHeader(string headerName) | ||||
string[] | string[] getCookie(string key, string[] defaultValue = null) | ||||
Json | Json 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) | ||||
string | string domain(int tldLength = 1) | ||||
IRequest | IRequest withRequestTarget(string requestTarget) | ||||
string | string getPath() | ||||
Json[string] | Json[string] getCookieParams() | ||||
string | string getProtocolVersion() | ||||
auto | auto withBody(IStream body) | ||||
bool | bool _is(string requestType, Json[string] someArguments) | ||||
Json | Json getParam(string path, Json defaultValue = Json(null)) | ||||
withUri(IUri | withUri(IUri anUri, bool preserveHost = false) | ||||
bool | bool __call(string methodName, Json[string] params) | ||||
this() | this() | ||||
DCookieCollection | DCookieCollection getCookieCollection() | ||||
IUri | IUri getUri() | ||||
DServerRequest | DServerRequest withAttribute(string attributeName, Json aValue) |