Struct actix_http::ServiceConfig [−][src]
pub struct ServiceConfig(_);
Expand description
Http service configuration
Implementations
pub fn new(
keep_alive: KeepAlive,
client_timeout: u64,
client_disconnect: u64,
secure: bool,
local_addr: Option<SocketAddr>
) -> ServiceConfig
pub fn new(
keep_alive: KeepAlive,
client_timeout: u64,
client_disconnect: u64,
secure: bool,
local_addr: Option<SocketAddr>
) -> ServiceConfig
Create instance of ServiceConfig
Returns the local address that this server is bound to.
Keep alive duration if configured.
Return state of connection keep-alive functionality
Client timeout for first request.
Client timeout for first request.
Client disconnect timer
Return keep-alive timer delay is configured.
Keep-alive expire time
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ServiceConfig
impl !Send for ServiceConfig
impl !Sync for ServiceConfig
impl Unpin for ServiceConfig
impl !UnwindSafe for ServiceConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more