1 2 3 4 5 6 7 8 9 10 11 12
use std::time::Duration; use crate::http_config::HttpServerConfig; pub(crate) fn local_config() -> HttpServerConfig { HttpServerConfig { host: "127.0.0.1".to_string(), port: 0, request_timeout: Duration::from_secs(1), ..Default::default() } }