HttpMessage
Defines HTTP message.
HttpMessage
defines fundamental characteristics of an HTTP message.
HttpRequest and HttpResponse extend the specification to define
characteristics specific to their respective message types.
Value members
Abstract methods
Concrete methods
Gets message body as instance of T
.
Gets message body as instance of T
.
- Value parameters:
- parser
body parser
Drains decoded message body.
Drains decoded message body.
- Value parameters:
- maxLength
maximum number of bytes
- Returns:
this message
- Throws:
- ReadLimitExceeded
if body exceeds
maxLength
Drains decoded message body to supplied sink.
Drains decoded message body to supplied sink.
- Value parameters:
- sink
buffer to which message body is written
- Returns:
number of bytes written
- Throws:
- BufferOverflowException
if sink not large enough to hold decoded message body
Drains decoded message body to supplied sink.
Drains decoded message body to supplied sink.
- Value parameters:
- length
buffer size (starting at offset)
- offset
buffer position
- sink
buffer to which message body is written
- Returns:
number of bytes written
- Throws:
- BufferOverflowException
if sink not large enough to hold decoded message body
- IndexOutOfBoundsException
if offset or length is illegal
Drains decoded message body to supplied sink.
Drains decoded message body to supplied sink.
- Value parameters:
- sink
buffer to which message body is written
- Returns:
this message
- Throws:
- BufferOverflowException
if sink not large enough to hold decoded message body
Drains decoded message body to supplied sink.
Drains decoded message body to supplied sink.
- Value parameters:
- maxLength
maximum number of bytes
- sink
stream to which message body is written
- Throws:
- ReadLimitExceeded
if body exceeds
maxLength
Drains decoded message body to supplied sink.
Drains decoded message body to supplied sink.
- Value parameters:
- maxLength
maximum number of bytes
- sink
channel to which message body is written
- Throws:
- ReadLimitExceeded
if body exceeds
maxLength
Gets attribute value with given name.
Gets attribute value with given name.
- Value parameters:
- name
attribute name
Gets attribute value with given name, or returns default if attribute not present.
Gets attribute value with given name, or returns default if attribute not present.
- Value parameters:
- default
default value
- name
attribute name
Gets first header with given name, or returns default if header not present.
Gets first header with given name, or returns default if header not present.
Gets first header value with given name, or returns default if header not present.
Gets first header value with given name, or returns default if header not present.