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>
) -> ServiceConfigCreate 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 ServiceConfigimpl !Send for ServiceConfigimpl !Sync for ServiceConfigimpl Unpin for ServiceConfigimpl !UnwindSafe for ServiceConfigBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V