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
A generic version of SerialServerDispatcher, allowing the implementor to furnish custom dispatchers & handlers.