- add
Adds a new header with the specified name and values. This getMethod can be
represented approximatel
- get
Returns the value of a header with the specified name. If there are more than
one values for the spe
- isKeepAlive
Returns true if and only if the connection can remain open and thus 'kept
alive'. This methods respe
- set
Sets a header with the specified name and values. If there is an existing header
with the same name,
- getAll
Returns the values of headers with the specified name
- setContentLength
Sets the "Content-Length" header.
- contains
Returns true if a header with the name and value exists.
- isEmpty
Checks if no header exists.
- names
Returns a new Set that contains the names of all headers in this object. Note
that modifying the ret
- getHost
Returns the value of the "Host" header. If there is no such header, the
defaultValue is returned.
- isTransferEncodingChunked
Checks to see if the transfer encoding in a specified HttpMessage is chunked
- getContentLength
Returns the length of the content. Please note that this value is not retrieved
from HttpMessage#get