Skip to content

Commit

Permalink
complete impl with alt-svc header
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Mar 12, 2024
1 parent 4288c52 commit 0ce46c8
Show file tree
Hide file tree
Showing 29 changed files with 930 additions and 1,093 deletions.
6 changes: 3 additions & 3 deletions core/lib/src/config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
use yansi::{Paint, Style, Color::Primary};

use crate::log::PaintExt;
use crate::config::{LogLevel, Shutdown, Ident, CliColors};
use crate::config::{LogLevel, ShutdownConfig, Ident, CliColors};
use crate::request::{self, Request, FromRequest};
use crate::http::uncased::Uncased;
use crate::data::Limits;
Expand Down Expand Up @@ -121,7 +121,7 @@ pub struct Config {
#[serde(serialize_with = "SecretKey::serialize_zero")]
pub secret_key: SecretKey,
/// Graceful shutdown configuration. **(default: [`Shutdown::default()`])**
pub shutdown: Shutdown,
pub shutdown: ShutdownConfig,
/// Max level to log. **(default: _debug_ `normal` / _release_ `critical`)**
pub log_level: LogLevel,
/// Whether to use colors and emoji when logging. **(default:
Expand Down Expand Up @@ -200,7 +200,7 @@ impl Config {
keep_alive: 5,
#[cfg(feature = "secrets")]
secret_key: SecretKey::zero(),
shutdown: Shutdown::default(),
shutdown: ShutdownConfig::default(),
log_level: LogLevel::Normal,
cli_colors: CliColors::Auto,
__non_exhaustive: (),
Expand Down
Loading

0 comments on commit 0ce46c8

Please sign in to comment.