Expand description
Built-in configuration support: appsettings.json + AppOptions pattern.
The framework automatically loads appsettings.json (merged with
appsettings.Development.json in dev mode) and binds it to the
built-in AppOptions struct. Users customize options via
HostBuilder::configure(|app| app.useOptions(|o| { ... })).
Structs§
- AppOptions
- Standard application options loaded from appsettings.json.
- AppSection
- Top-level application section.
- Cors
Section - CORS (Cross-Origin Resource Sharing) section.
- JwtSection
- JWT authentication section.
- Metrics
Section - HTTP request metrics (
GET /metricsPrometheus text when enabled). - Rate
Limit Section - Per-IP rate limiting (token bucket).
- TlsSection
- TLS (Transport Layer Security) section.
Traits§
- IApp
Options - Application options — binds to a section of appsettings.json.
Functions§
- bind_
config - Bind a section of the config JSON to a deserializable type.
- bind_
root - Bind the entire config JSON to a type (for root-level deserialization).
- load_
appsettings - Load the merged appsettings JSON (base + environment overlay + env overrides).