Package play.mvc

Class BodyParser.DelegatingBodyParser<A,​B>

    • Constructor Detail

      • DelegatingBodyParser

        public DelegatingBodyParser​(play.api.mvc.BodyParser<B> delegate,
                                    Function<B,​A> transform)
    • Method Detail

      • apply

        public Accumulator<ByteString,​F.Either<Result,​A>> apply​(Http.RequestHeader request)
        Description copied from interface: BodyParser
        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.

        Specified by:
        apply in interface BodyParser<A>
        Parameters:
        request - The request to create the body parser for.
        Returns:
        The accumulator to parse the body.