Request class
Request class.
Constructors
- Request(HttpRequest hReq, String id, Server server)
- Constructor [...]
-
Request.simulated(String method, String internalPath, { String sessionId, String id, RequestParams queryParams, SimulatedHttpHeaders headers, List<
Cookie> cookies, String bodyStr, List<int> bodyBytes, RequestParams postParams }) - Constructor for a simulated request.
-
Request.simulatedGet(String internalPath, { String sessionId, String id, RequestParams queryParams, SimulatedHttpHeaders headers, List<
Cookie> cookies, String bodyStr, List<int> bodyBytes }) - Constructor for a simulated GET request.
-
Request.simulatedPost(String internalPath, RequestParams postParams, { String sessionId, String id, RequestParams queryParams, SimulatedHttpHeaders headers, List<
Cookie> cookies, String bodyStr, List<int> bodyBytes }) - Constructor for a simulated Post request.
Properties
-
Cookies
read-only
- hasSession → bool
-
Indicates if the request has a session or not. [...]
read-only
- headers → HttpHeaders
-
HTTP request headers.
read-only
- id → String
-
An identity for the request. [...]
read-only
- method → String
-
Request HTTP method [...]
read-only
- pathParams ↔ RequestParams
-
The three different sources of parameters. [...]
read / write
- postParams ↔ RequestParams
-
The parameters from the POST request. [...]
read / write
- queryParams ↔ RequestParams
-
The parameters from the URL's query parameters. [...]
read / write
- request → HttpRequest
-
Returns the
HttpRequest
. [...]read-only - server → Server
-
The server that received this request. [...]
read-only
- session ↔ Session
-
The session associated with the context or null. [...]
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
bodyBytes(
int maxBytes) → Future< List< int> > - Retrieves the entire body of the request as a sequence of bytes.
-
bodyStr(
int maxBytes) → Future< String> - Retrieves the entire body of the request as a string. [...]
-
release(
) → Future - Release method [...]
-
requestPath(
) → String - The request path as a String. [...]
-
rewriteUrl(
String iUrl, { bool includeSession }) → String - Convert an internal URL to a URL that can be used by a browser. [...]
-
sessionHiddenInputElement(
) → String - Returns HTML for a hidden form input for the session parameter. [...]
-
ura(
String iUrl, { bool includeSession }) → String - URL Rewritten for an Attribute. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited