Request
Represents an HTTP request.
Value parameters
- headers
-
the request headers
- stream
-
a stream of request body bytes
- trailingHeaders
-
deferred trailing headers
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Returns the request body as a byte array.
Returns the request body as a byte array.
Attributes
- Returns
-
the request body as a byte array
Returns the content length of the request body as a string.
Returns the content length of the request body as a string.
Attributes
- Returns
-
the content length of the request body as a string
Returns the content type of the request body.
Returns the content type of the request body.
Attributes
- Returns
-
the content type of the request body
Adds the specified headers to the request headers.
Adds the specified headers to the request headers.
Value parameters
- hdr
-
the headers to add
Attributes
- Returns
-
a new request with the additional headers
Adds the specified header pair to the request headers.
Adds the specified header pair to the request headers.
Value parameters
- pair
-
a tuple containing the header name and value
Attributes
- Returns
-
a new request with the additional header pair
Returns true
if the content type of the request body is JSON.
Returns true
if the content type of the request body is JSON.
Attributes
- Returns
-
true
if the content type of the request body is JSON
Returns the HTTP method used in the request.
Returns the HTTP method used in the request.
Attributes
- Returns
-
the HTTP method used in the request
Returns the path component of the request URI.
Returns the path component of the request URI.
Attributes
- Returns
-
the path component of the request URI
Returns the transfer encoding used in the request.
Returns the transfer encoding used in the request.
Attributes
- Returns
-
the transfer encoding used in the request
Returns the URI of the request.
Returns the URI of the request.
Attributes
- Returns
-
the URI of the request
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product