public final class ContentLengthNotAllowedException
extends io.netty.handler.codec.DecoderException
HttpObjectDecoder.handleTransferEncodingChunkedWithContentLength(HttpMessage) by default.
The HTTP/1.1 specification, RFC 9112, disallow senders from including both Tranfer-Encoding and
{@code Content-Length headers in the same message, and permits servers to reject such requests.
| Constructor and Description |
|---|
ContentLengthNotAllowedException(String message)
Create a new instance with the given message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ContentLengthNotAllowedException(String message)
message - The exception message.Copyright © 2008–2026 The Netty Project. All rights reserved.