(Changed in version 2.8.0) +
creates a new map. Use +=
to add an element to this map and return that map itself.
(Changed in version 2.8.0) +
creates a new map. Use +=
to add an element to this map and return that map itself.
(Changed in version 2.8.0) ++
creates a new map. Use ++=
to add an element to this map and return that map itself.
Sets an attribute on the underlying servlet object.
Sets an attribute on the underlying servlet object.
the key/value pair. If the value is null, has the same effect
as calling -=(kv._1)
.
the map itself
(Changed in version 2.8.0) -
creates a new map. Use -=
to remove an element from this map and return that map itself.
(Changed in version 2.8.0) -
creates a new map. Use -=
to remove an element from this map and return that map itself.
(Changed in version 2.8.0) --
creates a new map. Use --=
to remove an element from this map and return that map itself.
Removes an attribute from the underlying servlet object.
Removes an attribute from the underlying servlet object.
the key to remove
the map itself
Return the attribute associated with the key or throw an exception when nothing found
Return the attribute associated with the key or throw an exception when nothing found
The type of the value
The key to find
an value for the attributed associated with the key in the underlying servlet object, or throw an exception if the key doesn't exist
Caches and returns the body of the response.
Caches and returns the body of the response. The method is idempotent for any given request. The result is cached in memory regardless of size, so be careful. Calling this method consumes the request's input stream.
the message body as a string according to the request's encoding (defult ISO-8859-1).
Returns the name of the character encoding of the body, or None if no character encoding is specified.
Returns the length, in bytes, of the body, or None if not known.
The content of the Content-Type header, or None if absent.
Returns a map of cookie names to values.
Returns a map of cookie names to values. If multiple values are present for a given cookie, the value is the first cookie of that name.
Optionally returns the attribute associated with the key
Optionally returns the attribute associated with the key
an option value containing the attribute associated with the key in the underlying servlet object, or None if none exists.
Optionally return and type cast the attribute associated with the key
Optionally return and type cast the attribute associated with the key
The type of the value
The key to find
an option value containing the attributed associated with the key in the underlying servlet object, or None if none exists
Return the attribute associated with the key or throw an exception when nothing found
Return the attribute associated with the key or throw an exception when nothing found
The type of the value
The key to find
an value for the attributed associated with the key in the underlying servlet object, or throw an exception if the key doesn't exist
A map of headers.
A map of headers. Multiple header values are separated by a ',' character. The keys of this map are case-insensitive.
The input stream is an InputStream which contains the raw HTTP POST data.
The input stream is an InputStream which contains the raw HTTP POST data. The caller should not close this stream.
In contrast to Rack, this stream is not rewindable.
Returns true if the request is an AJAX request
Returns true if the request's method is not "safe" per RFC 2616.
Creates a new iterator over all attributes in the underlying servlet object.
Creates a new iterator over all attributes in the underlying servlet object.
the new iterator
(Changed in version 2.8.0) keys
returns Iterable[A]
rather than Iterator[A]
.
Returns a map of cookie names to lists of their values.
Returns a map of cookie names to lists of their values. The default value of the map is the empty sequence.
A Map of the parameters of this request.
A Map of the parameters of this request. Parameters are contained in the query string or posted form data.
The remainder of the request URL's "path", designating the virtual "location" of the request's target within the application.
The remainder of the request URL's "path", designating the virtual "location" of the request's target within the application. This may be an empty string, if the request URL targets the application root and does not have a trailing slash.
The portion of the request URL that follows the ?, if any.
The portion of the request URL that follows the ?, if any. May be empty, but is always required!
Optionally returns the HTTP referrer.
Optionally returns the HTTP referrer.
the Referer
header, or None if not set
The remote address the client is connected from.
The remote address the client is connected from. This takes the load balancing header X-Forwarded-For into account
the client ip address
The HTTP request method, such as GET or POST
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
The initial portion of the request URL's "path" that corresponds to the application object, so that the application knows its virtual "location".
The initial portion of the request URL's "path" that corresponds to the application object, so that the application knows its virtual "location". This may be an empty string, if the application corresponds to the "root" of the server.
When combined with scriptName, pathInfo, and serverPort, can be used to complete the URL.
When combined with scriptName, pathInfo, and serverPort, can be used to complete the URL. Note, however, that the "Host" header, if present, should be used in preference to serverName for reconstructing the request URL.
When combined with scriptName, pathInfo, and serverName, can be used to complete the URL.
When combined with scriptName, pathInfo, and serverName, can be used to complete the URL. See serverName for more details.
The version of the protocol the client used to send the request.
The version of the protocol the client used to send the request. Typically this will be something like "HTTP/1.0" or "HTTP/1.1" and may be used by the application to determine how to treat any HTTP request headers.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Http or Https, depending on the request URL.
(Changed in version 2.8.0) values
returns Iterable[B]
rather than Iterator[B]
.
(Since version 2.0.0) Use HttpServletRequest.serverName instead
(Since version 2.1.0) Use requestMethod
(Since version 2.0.0) Use HttpServletRequest.serverPort instead
(Since version 2.0.0) Use referrer