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 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.
A cookie to be discarded.
Implement this interface if you want to add a Filter to your application
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.
A handler that is able to tag requests
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.
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.
Default JavaScript literals converters.
Defines parts handled by Multipart form data.
Default binders for URL path part.
Helper utilities for Result values.
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.
Contains the Controller/Action/Result API to handle HTTP requests.
For example, a typical controller: