Delays all subsequent send
tasks until all previously pending responses have come in.
Schedules a proper closing of the HttpDialogs
connection.
Schedules a proper closing of the HttpDialogs
connection.
The result is of type Future[HttpResponse]
if the dialog consists only of a single send
(with potentially
following reply
tasks), of type Future[Seq[HttpResponse]]
if the dialog involves more than one request and
of type Future[Unit]
if the dialog does not contain any send
.
Chains a simple responder function into the task chain.
Chains a simple responder function into the task chain.
Only legal after exactly one preceding send
task. reply
can be repeated, so the task chain
send(...).reply(...).reply(...).reply(...)
is legal.
Chains the sending of the given HttpRequest into the dialog.
Chains the sending of the given HttpRequest into the dialog.
The request will be sent as soon as the connection has been established and any awaitResponse
and
waitIdle
tasks potentially chained in before this send
have been completed.
Several send
tasks not separated by awaitResponse
/waitIdle
will cause the corresponding requests to be send
in a pipelined fashion, one right after another.
Like send
, but with a chunked request.
Like send
, but with a chunked request. If the given HttpRequest contains a body this body will
be used as the first chunk. Subsequent chunks as well as the closing of the stream are generated by the "chunker"
function.
Delays all subsequent send
tasks by the given time duration.
An
HttpDialog
encapsulates an exchange of HTTP messages over the course of one connection. It provides a fluent API for constructing a "chain" of scheduled tasks that define what to do over the course of the dialog.