Expand description
Hyprstream server implementation with OpenAI-compatible API
This module provides the main HTTP server with:
- OpenAI-compatible API endpoints at /oai/v1
- Model management at /models
Re-exports§
pub use middleware::AuthenticatedUser;
Modules§
- middleware
- Middleware for authentication, logging, and request processing
- routes
- HTTP route handlers
- state
- Server state management
- tls
- Shared TLS materials and HTTPS serving helpers for HTTP services.
Functions§
- create_
app - Create the main application router
- extract_
policy_ identity - Extract the subject and its authority-verified hosted-account policy domain.
- extract_
user - Extract user identity from optional authenticated user extension. Returns “anonymous” if no authentication present.
- start_
server - Start the HTTP server (plain, no TLS).
- start_
server_ tls - Start the HTTPS server with TLS.