Expand description
Handle the request and make a response.
// A simple echo server
async fn handler(body: String) -> http_kit::Result<String> {
Ok(body)
}Structs§
- Into
Endpoint - Adapter that turns a strongly typed
Handlerinto anEndpoint.
Enums§
- Handler
Error - Error type for handler operations.
Traits§
- Handler
- An HTTP handler.
This trait is a wrapper trait for
Fntypes. You will rarely use this type directly.
Functions§
- into_
endpoint - Transform handler to endpoint.