Skip to main content

Module http

Module http 

Source
Expand description

HTTP routing for ApplicationNode.

Provides axum routers for .well-known/scp and /scp/v1 WebSocket upgrade, plus the serve() method that merges application routes with SCP routes on a single HTTPS listener.

See spec section 18.6.2 for the SDK surface.

Structs§

BroadcastContext
Registered broadcast context for .well-known/scp generation.
NodeState
Shared state accessible by axum handlers.

Functions§

build_cors_layer
Constructs a CorsLayer from the node’s CORS configuration.
relay_router
Returns an axum Router handling WebSocket upgrade at /scp/v1.
well_known_router
Returns an axum Router serving GET /.well-known/scp.