pub struct HttpConfig {
pub bind_address: HttpBindAddress,
pub request_timeout: Duration,
pub graceful_shutdown_timeout: Duration,
pub max_request_body_bytes: u64,
pub proxy: HttpProxyConfig,
}Expand description
Event-driven HTTP configuration for future inbound and outbound adapters.
Fields§
§bind_address: HttpBindAddress§request_timeout: Duration§graceful_shutdown_timeout: Duration§max_request_body_bytes: u64§proxy: HttpProxyConfigImplementations§
Source§impl HttpConfig
impl HttpConfig
Sourcepub fn new(
bind_address: HttpBindAddress,
request_timeout: Duration,
graceful_shutdown_timeout: Duration,
max_request_body_bytes: u64,
proxy: HttpProxyConfig,
) -> Result<Self, HttpConfigError>
pub fn new( bind_address: HttpBindAddress, request_timeout: Duration, graceful_shutdown_timeout: Duration, max_request_body_bytes: u64, proxy: HttpProxyConfig, ) -> Result<Self, HttpConfigError>
Builds HTTP config while enforcing bounded request and shutdown behavior.
Sourcepub fn from_overrides(
overrides: &NetworkEnvOverrides,
) -> Result<Self, HttpConfigError>
pub fn from_overrides( overrides: &NetworkEnvOverrides, ) -> Result<Self, HttpConfigError>
Applies environment overrides to the default local HTTP policy.
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 (const: unstable) · 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 PartialEq for HttpConfig
impl PartialEq for HttpConfig
Source§fn eq(&self, other: &HttpConfig) -> bool
fn eq(&self, other: &HttpConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HttpConfig
impl StructuralPartialEq for HttpConfig
Auto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnsafeUnpin 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