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.
- 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.