Trait poem::endpoint::Endpoint [−][src]
pub trait Endpoint: Send + Sync + 'static {
type Output: IntoResponse;
fn call<'life0, 'async_trait>(
&'life0 self,
req: Request
) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
An HTTP request handler.
Associated Types
type Output: IntoResponse
type Output: IntoResponse
Represents the response of the endpoint.