Skip to main content

Module http

Module http 

Source
Expand description

Streamable HTTP wiring shared by the local daemon and the hosted router.

Structs§

Router
The router type for composing handlers and services.

Enums§

HttpError
Why the HTTP server could not start.

Functions§

base_config
The Streamable HTTP settings both modes share: JSON responses, with sessions for clients that negotiate a protocol older than 2026-07-28.
bind_loopback
Binds addr after checking that it is a loopback address.
check_loopback
Checks that addr is a loopback address.
local_router
The local daemon’s router: /mcp behind the Origin check, then the bearer check.
mcp_service
Wraps factory in the Streamable HTTP service.
serve
Serves app on listener until shutdown finishes.

Type Aliases§

Verifier
Answers whether a presented bearer token is accepted.