An action is essentially a (Request[A] => Result) function that handles a request and generates a result to be sent to the client.
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
An AsyncResult
handles a Promise
of result for cases where the result is not ready yet.
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 chunked result, which defines the response header and a chunks enumerator to send asynchronously to the client.
A Codec handle the conversion of String to Byte arrays.
Generic type representing content to be sent over an HTTP response.
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.
HTTP Flash scope.
An Handler handles a request.
Reference to an Handler.
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.
A plain HTTP result.
Binder for query string parameters.
Handle the request body a raw bytes data.
The complete HTTP request.
The HTTP request header.
The HTTP response.
A simple HTTP response header, used for standard responses.
Any Action result.
Helper utilities to generate results.
HTTP Session.
A simple result, which defines the response header and a body ready to send to the client.
A WebSocket handler.
Wrap an existing request.
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 utilities to manage the Flash cookie.
Default JavaScript literals converters.
Defines parts handled by Multipart form data.
Default binders for URL path part.
Default binders for Query String
Helper utilities for Result values.
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.
Contains the Controller/Action/Result API to handle HTTP requests.
For example, a typical controller: