Package io.netty.handler.codec.http
Class ContentLengthNotAllowedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.netty.handler.codec.CodecException
-
- io.netty.handler.codec.DecoderException
-
- io.netty.handler.codec.http.ContentLengthNotAllowedException
-
- All Implemented Interfaces:
java.io.Serializable
public final class ContentLengthNotAllowedException extends DecoderException
Thrown byHttpObjectDecoder.handleTransferEncodingChunkedWithContentLength(HttpMessage)by default.The HTTP/1.1 specification, RFC 9112, disallow senders from including both
Tranfer-Encodingand {@code Content-Length headers in the same message, and permits servers to reject such requests.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContentLengthNotAllowedException(java.lang.String message)Create a new instance with the given message.
-