Interface HttpDecoder<C,​B>

  • All Known Implementing Classes:
    TextCodec

    public interface HttpDecoder<C,​B>
    Read the HTTP request body data to a Java object.
    • Method Detail

      • decode

        void decode​(io.undertow.server.HttpServerExchange exchange,
                    C ctx,
                    HttpDecoder.Consumer<? super C,​? super B> consumer)
             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • wrapBuffered

        static <B> HttpDecoder<java.lang.Object,​B> wrapBuffered​(ch.raffael.meldioc.library.codec.ObjectDecoder<? extends B> decoder)
      • contentType

        static io.vavr.control.Option<java.lang.String> contentType​(io.undertow.util.HeaderMap headers)