Trait dbs_uhttp::EndpointHandler
source · [−]pub trait EndpointHandler<T>: Sync + Send {
fn handle_request(&self, req: &Request, arg: &T) -> Response;
}Expand description
An HTTP endpoint handler interface
Required Methods
sourcefn handle_request(&self, req: &Request, arg: &T) -> Response
fn handle_request(&self, req: &Request, arg: &T) -> Response
Handles an HTTP request.