[][src]Trait http_types::Server

pub trait Server: Debug + Unpin + Send + Sync + Clone + 'static {
    fn recv_req(
        &self,
        req: Request
    ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'static>>; }
This is supported on unstable only.

An HTTP server.

Required methods

fn recv_req(
    &self,
    req: Request
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'static>>

This is supported on unstable only.

Receive an HTTP request on the server.

Loading content...

Implementors

Loading content...