GeezerVison is showing netty.io — HttpServerCodec (Netty API Reference (4.1.141.Final))
Class HttpServerCodec
-
-
Constructor Summary
Constructors
Constructor
Description
Creates a new instance with the default decoder options
(maxInitialLineLength (4096), maxHeaderSize (8192), and
maxChunkSize (8192)).
HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize)
Creates a new instance with the specified decoder options.
HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean validateHeaders)
HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean validateHeaders,
int initialBufferSize)
HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean validateHeaders,
int initialBufferSize,
boolean allowDuplicateContentLengths)
HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean validateHeaders,
int initialBufferSize,
boolean allowDuplicateContentLengths,
boolean allowPartialChunks)
Creates a new instance with the specified decoder configuration.
Creates a new instance with the specified decoder configuration.
-
Method Summary
Modifier and Type
Method
Description
void
Upgrades to another protocol from HTTP.
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, inboundHandler, init, outboundHandler, read, removeInboundHandler, removeOutboundHandler, userEventTriggered, write
Modifier and Type
Method
Description
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
Do nothing by default, sub-classes may override this method.
void
Do nothing by default, sub-classes may override this method.
protected final void
Initialized this handler with the specified handlers.
void
final void
final void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HttpServerCodec
public HttpServerCodec()
Creates a new instance with the default decoder options
(maxInitialLineLength (4096), maxHeaderSize (8192), and
maxChunkSize (8192)).
-
HttpServerCodec
public HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize)
Creates a new instance with the specified decoder options.
-
HttpServerCodec
@Deprecated
public HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean validateHeaders)
Creates a new instance with the specified decoder options.
-
HttpServerCodec
@Deprecated
public HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean validateHeaders,
int initialBufferSize)
Creates a new instance with the specified decoder options.
-
HttpServerCodec
@Deprecated
public HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean validateHeaders,
int initialBufferSize,
boolean allowDuplicateContentLengths)
Creates a new instance with the specified decoder options.
-
HttpServerCodec
@Deprecated
public HttpServerCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean validateHeaders,
int initialBufferSize,
boolean allowDuplicateContentLengths,
boolean allowPartialChunks)
Creates a new instance with the specified decoder options.
-
HttpServerCodec
Creates a new instance with the specified decoder configuration.
-
HttpServerCodec
Creates a new instance with the specified decoder configuration.
- Parameters:
config - the decoder configuration.
maxPipelineDepth - the maximum number of requests that may be decoded while awaiting the
corresponding responses to be written, before decoding of further requests
is rejected with an IllegalStateException.
-
|