The request HTTP method.
The request uri.
The request HTTP headers.
The request body.
The client IP.
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 parameters (eg charset))
Returns the value of the Content-Type header (without the parameters (eg charset))
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.
Returns the current method
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 media type of this request.
The media type of this request. Same as contentType, except returns a fully parsed media type with parameters.
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.
Is the client using SSL?
Is the client using SSL?
If the X-Forwarded-Proto
header is present, then this method will return true
if the value in that header is "https", if either the local address is 127.0.0.1, or if
trustxforwarded
is configured to be true in the application configuration file.
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.
Constructs a new request with additional headers. Any existing headers of the same name will be replaced.
Adds a JSON body to the request.
Adds a multipart form data 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.
The media types list of the request’s Accept header, not sorted in any particular order.
(Since version 2.1) Use acceptedTypes instead
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.