Java io.netty.handler.codec.http HttpUtil fields, constructors, methods, implement or subclass

Example usage for Java io.netty.handler.codec.http HttpUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.handler.codec.http HttpUtil.

The text is from its open source code.

Method

CharsetgetCharset(HttpMessage message)
Fetch charset from message's Content-Type header.
CharsetgetCharset(CharSequence contentTypeValue)
Fetch charset from Content-Type header value.
CharsetgetCharset(HttpMessage message, Charset defaultCharset)
Fetch charset from message's Content-Type header.
CharsetgetCharset(CharSequence contentTypeValue, Charset defaultCharset)
Fetch charset from Content-Type header value.
longgetContentLength(HttpMessage message, long defaultValue)
Returns the length of the content or the specified default value if the message does not have the "Content-Length" header .
intgetContentLength(HttpMessage message, int defaultValue)
Get an int representation of #getContentLength(HttpMessage,long) .
longgetContentLength(HttpMessage message)
Returns the length of the content.
CharSequencegetMimeType(HttpMessage message)
Fetch MIME type part from message's Content-Type header as a char sequence.
CharSequencegetMimeType(CharSequence contentTypeValue)
Fetch MIME type part from Content-Type header value as a char sequence.
booleanis100ContinueExpected(HttpMessage message)
Returns true if and only if the specified message contains an expect header and the only expectation present is the 100-continue expectation.
booleanisContentLengthSet(HttpMessage m)
booleanisKeepAlive(HttpMessage message)
Returns true if and only if the connection can remain open and thus 'kept alive'.
booleanisTransferEncodingChunked(HttpMessage message)
Checks to see if the transfer encoding in a specified HttpMessage is chunked
voidset100ContinueExpected(HttpMessage message, boolean expected)
Sets or removes the "Expect: 100-continue" header to / from the specified message.
voidsetContentLength(HttpMessage message, long length)
Sets the "Content-Length" header.
voidsetKeepAlive(HttpHeaders h, HttpVersion httpVersion, boolean keepAlive)
Sets the value of the "Connection" header depending on the protocol version of the specified message.
voidsetKeepAlive(HttpMessage message, boolean keepAlive)
Sets the value of the "Connection" header depending on the protocol version of the specified message.
voidsetTransferEncodingChunked(HttpMessage m, boolean chunked)
Set the HttpHeaderNames#TRANSFER_ENCODING to either include HttpHeaderValues#CHUNKED if chunked is true , or remove HttpHeaderValues#CHUNKED if chunked is false .