Trait poem::endpoint::DynEndpoint
source · pub trait DynEndpoint: Send + Sync {
type Output: IntoResponse;
// Required method
fn call(&self, req: Request) -> BoxFuture<'_, Result<Self::Output>>;
}
Expand description
A endpoint
that can be dynamically dispatched.
Required Associated Types§
sourcetype Output: IntoResponse
type Output: IntoResponse
Represents the response of the endpoint.