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§
- Broadcast
Context - Registered broadcast context for
.well-known/scpgeneration. - Node
State - Shared state accessible by axum handlers.
Functions§
- build_
cors_ layer - Constructs a
CorsLayerfrom the node’s CORS configuration. - relay_
router - Returns an axum
Routerhandling WebSocket upgrade at/scp/v1. - well_
known_ router - Returns an axum
RouterservingGET /.well-known/scp.