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
RequestExt

Functions§

error_message_from_response
Extract the most meaningful error message from an HTTP response. This is useful for handling OAuth2 / OpenID Connect Bearer errors
error_response
parse_www_authenticate
Parse a WWW-Authenticate header with Bearer-style key/value parameters into a JSON object (serde_json::Map).
url_base

Type Aliases§

BoxFutureResponse
GenericBody
MiddlewareNext
RequestHandler
RequestHandlerFnOnce