Re-exports§
pub use middleware::Middleware;
Modules§
Macros§
- with_
middlewares - A helper macro to wrap an async handler method into a
RequestHandlerand compose it with middlewares.
Structs§
- McpApp
State - Application state struct for the Hyper ser
- McpHttp
Handler
Traits§
Functions§
- build_
response - empty_
response - Creates an empty HTTP response body.
- error_
response
Type Aliases§
- BoxFuture
Response - Generic
Body - Middleware
Next - Request
Handler - A shared, reference-counted request handler.
- Request
Handler Fn - A handler function that processes an HTTP request and shared state, returning an async response future.