The request HTTP method.
The request uri.
The request HTTP headers.
The request body.
The client IP.
The media types list of the request’s Accept header, not sorted in any particular order.
The Request Langs extracted from the Accept-Language header and sorted by preference (preferred first).
The Request Langs extracted from the Accept-Language header and sorted by preference (preferred first).
The media types list of the request’s Accept header, sorted by preference (preferred first).
Check if this request accepts a given media type.
Check if this request accepts a given media type.
true if mimeType
matches the Accept header, otherwise false
The request body.
The request body.
Returns the charset of the request for text-based body
Returns the charset of the request for text-based body
Returns the value of the Content-Type header (without the ;charset= part if exists)
Returns the value of the Content-Type header (without the ;charset= part if exists)
The HTTP cookies.
The HTTP cookies.
Copy the request.
Copy the request.
The HTTP domain
The HTTP domain
Parses the Flash
cookie and returns the Flash
data.
Parses the Flash
cookie and returns the Flash
data.
Helper method to access a queryString parameter.
Helper method to access a queryString parameter.
The request HTTP headers.
The request HTTP headers.
The HTTP host (domain, optionally port)
The HTTP host (domain, optionally port)
The request ID.
The request ID.
Transform the request body.
Transform the request body.
The request HTTP method.
The request HTTP method.
The request path.
The request path.
The request query String
The request query String
Returns the raw query string.
Returns the raw query string.
The client IP.
The client IP.
Parses the Session
cookie and returns the Session
data.
Parses the Session
cookie and returns the Session
data.
The request Tags.
The request Tags.
The request uri.
The request uri.
The HTTP version.
The HTTP version.
Adds a body to the request.
Constructs a new request with additional Cookies.
Constructs a new request with additional Flash.
Set a Form url encoded body to this request.
Constructs a new request with additional headers.
Adds a JSON body to the request.
Adds a raw body to the request
Constructs a new request with additional session.
Adds a text body to the request.
Adds an XML body to the request.
Sets a JSON body to this request.
Sets a JSON body to this request. The content type is set to application/json. The method is set to POST.
the JSON Node.
The request HTTP method, POST by default.
the current fake request
(Since version 2.1.0) Use FakeRequest(method, path) to specify the method
Fake HTTP request implementation.
The body type.
The request HTTP method.
The request uri.
The request HTTP headers.
The request body.
The client IP.