package http
- Source
- package.scala
- Alphabetic
- By Inheritance
- http
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait BodyReader extends AnyRef
Representation of a HTTP message body
Representation of a HTTP message body
- Note
The release of resources must be idempotent, meaning that
discard()may be called after complete consumption of the body and it may also be called numerous times.
- case class ClientResponse(code: Int, status: String, headers: Headers, body: BodyReader) extends Product with Serializable
HTTP response received by the client
HTTP response received by the client
- code
Response code
- status
Response message. This have no meaning for the HTTP connection, its just for human enjoyment.
- headers
Response headers
- body
BodyReader used to consume the response body.
- type Headers = Seq[(String, String)]
- trait Http1ClientSession extends HttpClientSession
- trait Http2ClientSession extends HttpClientSession
- sealed trait HttpClientSession extends AnyRef
Representation of a concrete HTTP session
Representation of a concrete HTTP session
The HttpClientSession represents a true HTTP client session, either HTTP/1.x or HTTP/2.
- case class HttpRequest(method: Method, url: Url, majorVersion: Int, minorVersion: Int, headers: Headers, body: BodyReader) extends Product with Serializable
Standard HTTP request
Standard HTTP request
- method
HTTP request method
- url
request url
- headers
request headers
- body
function which returns the next chunk of the request body. Termination is signaled by an empty
ByteBufferas determined byByteBuffer.hasRemaining().
- type Method = String
- type Url = String
Value Members
- object BodyReader
- object ClientResponse extends Serializable
- object HeaderNames
Incomplete collection of header names, all lower case for easy compatibility with HTTP/2.
- object HttpClientSession