Triggers the closing of the connection.
Triggers the closing of the connection.
Sends the given request and delivers its reponse as a Future
.
Sends the given request and delivers its reponse as a Future
.
If the response is chunked the message entities are buffered and assembled into an HttpResponse
by an automatically started DefaultReceiverActor before delivery.
If the configured maximum content length is exceeded during buffering the Future
will be completed with a
respective HttpClientException.
Sends the given request and delivers its response (parts) to the given receiver actor.
Sends the given request and delivers its response (parts) to the given receiver actor.
If the response is chunked the individual response parts are delivered to the receiver actor one by one,
directly upon arrival, as MessageChunk and ChunkedResponseEnd messages.
If a context object is given all messages to the receiver actor will be a Tuple2[<message>, <context>]
.
This way, you can establish the relationship between outgoing requests and incoming responses with any custom
marker object. All potentially occuring errors are delivered to the receiver actor as
HttpClientException messages.
Sends the given HttpRequest as the start of a chunked request.
Sends the given HttpRequest as the start of a chunked request. If the given request has a non-empty body this body will be send immediately after the HTTP headers as the first chunk. The returned ChunkedRequester allows for the sending of all subsequent chunks as well as the finalization of the request.
An instance of this trait represents an HTTP connection to a specific host and port. It is returned by the HttpClient actor as a reply to a Connect message.