Package play.mvc

Interface BodyParser<A>

All Known Implementing Classes:
BodyParser.AnyContent, BodyParser.BufferingBodyParser, BodyParser.Bytes, BodyParser.CompletableBodyParser, BodyParser.Default, BodyParser.DelegatingBodyParser, BodyParser.DelegatingMultipartFormDataBodyParser, BodyParser.Empty, BodyParser.FormUrlEncoded, BodyParser.Json, BodyParser.MaxLengthBodyParser, BodyParser.MultipartFormData, BodyParser.Raw, BodyParser.TemporaryFile, BodyParser.Text, BodyParser.ToFile, BodyParser.TolerantJson, BodyParser.TolerantText, BodyParser.TolerantXml, BodyParser.Xml

public interface BodyParser<A>
A body parser parses the HTTP request body content.
  • Method Details

    • apply

      Return an accumulator to parse the body of the given HTTP request.

      The accumulator should either produce a result if an error was encountered, or the parsed body.

      Parameters:
      request - The request to create the body parser for.
      Returns:
      The accumulator to parse the body.
    • widen

      static <A extends B, B> BodyParser<B> widen(BodyParser<A> parser)