Struct tk_http::server::buffered::BufferedDispatcher [] [src]

pub struct BufferedDispatcher<S, N: NewService<S>> { /* fields omitted */ }

A dispatcher that allows to process request and return response using a one single function

Methods

impl<S, N: NewService<S>> BufferedDispatcher<S, N>
[src]

Create an instance of bufferd dispatcher

Sets max request length

impl<S, H, I, T, U> BufferedDispatcher<S, WebsocketFactory<H, I>> where
    H: Fn(Request, Encoder<S>) -> T,
    I: Fn(WriteFramed<S, WebsocketCodec>, ReadFramed<S, WebsocketCodec>) -> U,
    T: Future<Item = EncoderDone<S>, Error = Error>,
    U: Future<Item = (), Error = ()> + 'static, 
[src]

Creates a dispatcher with two functions: one serving http requests and websockets.

Trait Implementations

impl<S, N: NewService<S>> Dispatcher<S> for BufferedDispatcher<S, N>
[src]

The codec type for this dispatcher Read more

Received headers of a request Read more