Dispatches a request.
Dispatches a request. The first argument is the request. The second
argument eos
(end-of-stream promise) must be fulfilled when the request
is complete.
For non-streaming requests, eos.setDone()
should be called immediately,
since the entire request is present. For streaming requests,
eos.setDone()
must be called at the end of stream (in HTTP, this is on
receipt of last chunk). Refer to the implementation in
com.twitter.finagle.http.codec.HttpServerDispatcher
.
Exposed for testing
Exposed for testing
Dispatch requests from transport one at a time, queueing concurrent requests.
Transport errors are considered fatal; the service will be released after any error.