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:
Serializable
Thrown by
HttpObjectDecoder.handleTransferEncodingChunkedWithContentLength(HttpMessage) by default.
The HTTP/1.1 specification, RFC 9112, disallow senders from including both Tranfer-Encoding and
invalid @code
{@code Content-Length headers in the same message, and permits servers to reject such requests.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContentLengthNotAllowedException(String message) Create a new instance with the given message. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ContentLengthNotAllowedException
Create a new instance with the given message.- Parameters:
message- The exception message.
-