Module mcp_http

Module mcp_http 

Source

Re-exports§

pub use middleware::Middleware;

Modules§

middleware

Macros§

with_middlewares
A helper macro to wrap an async handler method into a RequestHandler and compose it with middlewares.

Structs§

McpAppState
Application state struct for the Hyper ser
McpHttpHandler

Traits§

GenericBodyExt

Functions§

build_response
empty_response
Creates an empty HTTP response body.
error_response

Type Aliases§

BoxFutureResponse
GenericBody
MiddlewareNext
RequestHandler
A shared, reference-counted request handler.
RequestHandlerFn
A handler function that processes an HTTP request and shared state, returning an async response future.