Expand description
API router configuration.
Structs§
- Cors
Config - Cross-Origin Resource Sharing (CORS) configuration.
- Security
Config - Security configuration for the server.
- Server
Config - Server configuration.
Enums§
- Required
Capability - The capability a route requires (Phase A spec §3).
Functions§
- bind
- Bind the API server’s port without starting to serve.
- create_
router - Create the API router with all routes configured.
- create_
router_ with_ state - Create the API router with custom state (no security).
- create_
secure_ router - Create the API router with security enabled.
- required_
capability - Map a matched route (
method+ axumMatchedPath) to its required capability (spec §3 table). - serve
- Start the API server.
- serve_
on - Serve on an already-bound listener.
- serve_
with_ state - Start the API server with custom state.