Decode the Message to the specified type
type of the result
EntityDecoder used to decode the Message
the effect which will generate the A
Decode the Message to the specified type
Decode the Message to the specified type
type of the result
EntityDecoder used to decode the Message
the effect which will generate the DecodeResult[T]
Returns the charset parameter of the Content-Type
header, if present.
Returns the charset parameter of the Content-Type
header, if present.
Does not introspect the body for media types that define a charset
internally.
Keep headers that satisfy the predicate
Keep headers that satisfy the predicate
predicate
a new message object which has only headers that satisfy the predicate
Add the provided headers to the existing headers, replacing those of the same header name The passed headers are assumed to contain no duplicate Singleton headers.
The trailer headers, as specified in Section 3.6.1 of RFC 2616.
The trailer headers, as specified in Section 3.6.1 of RFC 2616. The resulting F might not complete until the entire body has been consumed.
Generates a new message object with the specified key/value pair appended to the AttributeMap
Generates a new message object with the specified key/value pair appended to the AttributeMap
type of the value to store
Key with which to associate the value
value associated with the key
a new message object with the key/value pair appended
Sets the entity body without affecting headers such as Transfer-Encoding
or Content-Length
.
Sets the entity body without affecting headers such as Transfer-Encoding
or Content-Length
. Most use cases are better served by withEntity,
which uses an EntityEncoder to maintain the headers.
Set an empty entity body on this message, and remove all payload headers that make no sense with an empty body.
Replace the body of this message with a new body
Replace the body of this message with a new body
type of the Body
body to attach to this method
EntityEncoder with which to convert the body to an EntityBody
a new message with the new body
Returns a new message object without the specified key in the AttributeMap
Returns a new message object without the specified key in the AttributeMap
Key to remove
a new message object without the key
Replace the existing headers with those provided
Replace the existing headers with those provided
(Since version 0.20.0-M2) Use withHeaders instead
Replace the existing headers with those provided
Replace the existing headers with those provided
(Since version 0.20.0-M2) Use withHeaders instead
(Since version 0.19) Use withEntity
(Since version 0.20.0-M2) Use withContentType(Content-Type
(t)) instead
Represents a HTTP Message. The interesting subclasses are Request and Response.