Trait fishrock_lambda_http::Handler [−][src]
pub trait Handler: Sized { type Error; type Response: IntoResponse; type Fut: Future<Output = Result<Self::Response, Self::Error>> + Send + 'static; fn call(&self, event: Request, context: Context) -> Self::Fut; }
Expand description
Functions serving as ALB and API Gateway REST and HTTP API handlers must conform to this type.
This can be viewed as a lambda_runtime::Handler
constrained to http
crate Request
and Response
types