Trait poem::Endpoint[][src]

pub trait Endpoint: Send + Sync + 'static {
    fn call<'life0, 'async_trait>(
        &'life0 self,
        req: Request
    ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

An HTTP request handler.

Required methods

Get the response to the request.

Implementations on Foreign Types

Implementors