Returns the maximum number of messages to read per read loop.
a channelRead() event.
If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.
Sets the maximum number of messages to read per read loop.
If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.
This method will be removed in the next major feature release.
Deregister all Channels in this group from their EventLoop.
Please note that this operation is asynchronous as Channel.deregister() is.
Use HttpUtil.getContentLength(HttpMessage) instead.
Returns the length of the content. Please note that this value is
not retrieved from HttpContent#content() but from the
"Content-Length" header, and thus they are independent from each
other.
Create a new CharSequence which is optimized for reuse as HttpHeaders name or value.
So if you have a Header name or value that you want to reuse you should make use of this.
Use HttpUtil.setKeepAlive(HttpMessage, boolean) instead.
Sets the value of the "Connection" header depending on the
protocol version of the specified message. This getMethod sets or removes
the "Connection" header depending on what the default keep alive
mode of the message's protocol version is, as specified by
HttpVersion.isKeepAliveDefault().
Fetches a chunked data from the stream. Once this method returns the last chunk
and thus the stream has reached at its end, any subsequent ChunkedInput.isEndOfInput()
call must return true.
Returns the DnsServerAddresses that yields the system DNS server addresses sequentially. If it failed to
retrieve the list of the system DNS server addresses from the environment, it will use "8.8.8.8" and
"8.8.4.4", the addresses of the Google public DNS servers.
This method has the same effect with the following code:
Returns the list of the system DNS server addresses. If it failed to retrieve the list of the system DNS server
addresses from the environment, it will return "8.8.8.8" and "8.8.4.4", the addresses of the
Google public DNS servers.