pub struct HttpConfig {Show 14 fields
pub enabled: bool,
pub port: u16,
pub host: String,
pub openapi_spec: Option<String>,
pub cors: Option<HttpCorsConfig>,
pub request_timeout_secs: u64,
pub validation: Option<HttpValidationConfig>,
pub aggregate_validation_errors: bool,
pub validate_responses: bool,
pub response_template_expand: bool,
pub validation_status: Option<u16>,
pub validation_overrides: HashMap<String, String>,
pub skip_admin_validation: bool,
pub auth: Option<AuthConfig>,
}Expand description
HTTP server configuration
Fields§
§enabled: boolEnable HTTP server
port: u16Server port
host: StringHost address
openapi_spec: Option<String>Path to OpenAPI spec file for HTTP server
cors: Option<HttpCorsConfig>CORS configuration
request_timeout_secs: u64Request timeout in seconds
validation: Option<HttpValidationConfig>Request validation configuration
aggregate_validation_errors: boolAggregate validation errors into JSON array
validate_responses: boolValidate responses (warn-only logging)
response_template_expand: boolExpand templating tokens in responses/examples
validation_status: Option<u16>Validation error HTTP status (e.g., 400 or 422)
validation_overrides: HashMap<String, String>Per-route overrides: key “METHOD path” => mode (off/warn/enforce)
skip_admin_validation: boolWhen embedding Admin UI under HTTP, skip validation for the mounted prefix
auth: Option<AuthConfig>Authentication configuration
Trait Implementations§
Source§impl Clone for HttpConfig
impl Clone for HttpConfig
Source§fn clone(&self) -> HttpConfig
fn clone(&self) -> HttpConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpConfig
impl Debug for HttpConfig
Source§impl Default for HttpConfig
impl Default for HttpConfig
Source§impl<'de> Deserialize<'de> for HttpConfigwhere
HttpConfig: Default,
impl<'de> Deserialize<'de> for HttpConfigwhere
HttpConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnwindSafe for HttpConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more