GeezerVison is showing netty.io — HttpClientCodec (Netty API Reference (4.1.141.Final))
Class HttpClientCodec
-
-
Field Summary
Fields
Modifier and Type
Field
Description
static final boolean
static final boolean
-
Constructor Summary
Constructors
Constructor
Description
Creates a new instance with the default decoder options
(maxInitialLineLength (4096), maxHeaderSize (8192), and
maxChunkSize (8192)).
HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize)
Creates a new instance with the specified decoder options.
HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse)
Creates a new instance with the specified decoder options.
HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders)
HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders,
boolean parseHttpAfterConnectRequest)
HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders,
int initialBufferSize)
HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders,
int initialBufferSize,
boolean parseHttpAfterConnectRequest)
HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders,
int initialBufferSize,
boolean parseHttpAfterConnectRequest,
boolean allowDuplicateContentLengths)
HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders,
int initialBufferSize,
boolean parseHttpAfterConnectRequest,
boolean allowDuplicateContentLengths,
boolean allowPartialChunks)
Creates a new instance with the specified decoder options.
-
Method Summary
Modifier and Type
Method
Description
boolean
void
Prepares to upgrade to another protocol from HTTP.
void
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
-
Field Details
-
DEFAULT_FAIL_ON_MISSING_RESPONSE
public static final boolean DEFAULT_FAIL_ON_MISSING_RESPONSE
- See Also:
-
-
DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST
public static final boolean DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST
- See Also:
-
-
Constructor Details
-
HttpClientCodec
public HttpClientCodec()
Creates a new instance with the default decoder options
(maxInitialLineLength (4096), maxHeaderSize (8192), and
maxChunkSize (8192)).
-
HttpClientCodec
public HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize)
Creates a new instance with the specified decoder options.
-
HttpClientCodec
public HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse)
Creates a new instance with the specified decoder options.
-
HttpClientCodec
@Deprecated
public HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders)
Creates a new instance with the specified decoder options.
-
HttpClientCodec
@Deprecated
public HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders,
boolean parseHttpAfterConnectRequest)
Creates a new instance with the specified decoder options.
-
HttpClientCodec
@Deprecated
public HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders,
int initialBufferSize)
Creates a new instance with the specified decoder options.
-
HttpClientCodec
@Deprecated
public HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders,
int initialBufferSize,
boolean parseHttpAfterConnectRequest)
Creates a new instance with the specified decoder options.
-
HttpClientCodec
@Deprecated
public HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders,
int initialBufferSize,
boolean parseHttpAfterConnectRequest,
boolean allowDuplicateContentLengths)
Creates a new instance with the specified decoder options.
-
HttpClientCodec
@Deprecated
public HttpClientCodec(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize,
boolean failOnMissingResponse,
boolean validateHeaders,
int initialBufferSize,
boolean parseHttpAfterConnectRequest,
boolean allowDuplicateContentLengths,
boolean allowPartialChunks)
Creates a new instance with the specified decoder options.
-
HttpClientCodec
public HttpClientCodec(HttpDecoderConfig config,
boolean parseHttpAfterConnectRequest,
boolean failOnMissingResponse)
Creates a new instance with the specified decoder options.
-
Method Details
-
-
-
setSingleDecode
public void setSingleDecode(boolean singleDecode)
-
isSingleDecode
public boolean isSingleDecode()
|