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.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait HttpRequesttrait HttpResponse
Members list
Value members
Abstract methods
Gets message attributes.
Gets message attributes.
Attributes
- Note
-
Attributes are arbitrary values associated with message and are not part of transmitted message.
Concrete methods
Gets message body as instance of T
.
Gets message body as instance of T
.
Value parameters
- parser
-
body parser
Attributes
Drains decoded message body.
Drains decoded message body.
Value parameters
- maxLength
-
maximum number of bytes
Attributes
- 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
- maxLength
-
maximum number of bytes
- sink
-
sink to which message body is written
Attributes
- Returns
-
number of bytes written
- Throws
-
ReadLimitExceeded
if body exceeds
maxLength
Gets attribute value with given name.
Gets attribute value with given name.
Value parameters
- name
-
attribute name
Attributes
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
Attributes
Gets first header with given name.
Gets first header with given name.
Attributes
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.
Attributes
Gets first header value with given name.
Gets first header value with given name.
Attributes
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.
Attributes
Gets header values with given name.
Gets header values with given name.
Attributes
Gets headers with given name.
Gets headers with given name.
Attributes
Tests for header with given name.
Tests for header with given name.
Attributes
Gets HTTP version.
Gets HTTP version.