Expand description
HTTP proxy layer — axum router, route handlers, and error mapping.
§Module layout
Re-exports§
pub use error::ApiError;pub use handler::amp::threads::AmpThreadIndex;pub use openapi::ApiDoc;pub use router::make_router;pub use usage::UsageRecorder;pub use usage::UsageStats;
Modules§
- error
- API error type that maps
ByokErrorvariants to HTTP status codes. - handler
- HTTP route handlers for all proxy endpoints.
- middleware
- Axum middleware layers for the proxy.
- openapi
OpenAPIspecification aggregation.- router
- Axum router construction and route registration.
- usage
- In-memory usage statistics for request/token tracking, with optional
persistent backing via
UsageStore.
Structs§
- AppState
- Shared application state passed to all route handlers.
- Version
Store - Shared, read-only store of provider version info loaded at startup.