Class HttpPostRequestEncoder

  • All Implemented Interfaces:
    io.netty.handler.stream.ChunkedInput<HttpContent>

    public class HttpPostRequestEncoder
    extends Object
    implements io.netty.handler.stream.ChunkedInput<HttpContent>
    This encoder will help to encode Request for a FORM as POST.

    According to RFC 7231, POST, PUT and OPTIONS allow to have a body. This encoder will support widely all methods except TRACE since the RFC notes for GET, DELETE, HEAD and CONNECT: (replaces XXX by one of these methods)

    "A payload within a XXX request message has no defined semantics; sending a payload body on a XXX request might cause some existing implementations to reject the request."

    On the contrary, for TRACE method, RFC says:

    "A client MUST NOT send a message body in a TRACE request."