Define a set of extractors allowing to pattern match on the Accept HTTP header of a request
Convenient class to generate extractors checking if a given mime type matches the Accept header of a request.
An action is essentially a (Request[A] => Result) function that handles a request and generates a result to be sent to the client.
Provides helpers for creating Action
values.
A simple kind of ActionRefiner which, given a request (of type R), may either immediately produce a Result (for example, an error), or continue its Action block with the same request.
A builder for generic Actions that generalizes over the type of requests.
A simple kind of ActionFunction which, given a request (of type R), may either immediately produce a Result (for example, an error), or call its Action block with a parameter (of type P).
A simple kind of ActionRefiner which, given a request (of type R), unconditionally transforms it to a new parameter type (P) to be passed to its Action block.
A request body that adapts automatically according the request Content-Type.
AnyContent - Form url encoded body
AnyContent - Json body
AnyContent - Multipart form data body
AnyContent - Raw body (give access to the raw data as bytes).
AnyContent - Text body
AnyContent - XML body
A body parser parses the HTTP request body content.
Default body parsers.
Defines a Call
, which describes an HTTP request and can be used to create links or fill redirect data.
A Codec handle the conversion of String to Byte arrays.
Defines utility methods to generate Action
and Results
types.
An HTTP cookie.
Trait that should be extended by the Cookie helpers.
The HTTP cookies set.
A cookie to be discarded.
An EssentialAction
underlies every Action
.
Implement this interface if you want to add a Filter to your application
HTTP Flash scope.
An Handler handles a request.
Reference to a Handler, useful for contructing handlers from Java code.
The HTTP headers set.
Transform a value to a Javascript literal.
Signal a max content size exceeded
Multipart form data body.
Binder for URL path parameters.
Binder for query string parameters.
Handle the request body a raw bytes data.
The complete HTTP request.
The HTTP request header.
A handler that is able to tag requests.
A simple HTTP response header, used for standard responses.
A simple result, which defines the response header and a body ready to send to the client.
Helper utilities to generate results.
HTTP Session.
A WebSocket handler.
Wrap an existing request.
Generic type representing content to be sent over an HTTP response.
(Since version 2.3) SimpleResult has been renamed to Result
Helper object to create Action
values.
AnyContent - Empty request body
Helper object to construct BodyParser
values.
Defaults BodyParsers.
Default Codec support.
Helper utilities to encode Cookies.
Helper for creating EssentialAction
s.
Compose the action and the Filters to create a new Action
Compose the action and the Filters to create a new Action
Helper utilities to manage the Flash cookie.
The connection semantics for the result.
Default JavaScript literals converters.
Defines parts handled by Multipart form data.
Default binders for URL path part.
Default binders for Query String
Helper utilities to generate results.
Helpers to create secure actions.
Helper utilities to manage the Session cookie.
Alias types for Sockets
Helper utilities to generate WebSocket results.
(Since version 2.3) SimpleResult has been renamed to Result
Contains the Controller/Action/Result API to handle HTTP requests.
For example, a typical controller: