Struct actix_http::ServiceConfig [−][src]
pub struct ServiceConfig(_);Expand description
HTTP service configuration.
Implementations
pub fn new(
keep_alive: KeepAlive,
client_request_timeout: Duration,
client_disconnect_timeout: Duration,
secure: bool,
local_addr: Option<SocketAddr>
) -> ServiceConfig
pub fn new(
keep_alive: KeepAlive,
client_request_timeout: Duration,
client_disconnect_timeout: Duration,
secure: bool,
local_addr: Option<SocketAddr>
) -> ServiceConfig
Create instance of ServiceConfig
Returns the local address that this server is bound to.
Returns None for connections via UDS (Unix Domain Socket).
Connection keep-alive setting.
Creates a time object representing the deadline for this connection’s keep-alive period, if enabled.
When KeepAlive::Os or KeepAlive::Disabled is set, this will return None.
Creates a time object representing the deadline for the client to finish sending the head of its first request.
Returns None if this ServiceConfig was constructed with client_request_timeout: 0.
Creates a time object representing the deadline for the client to disconnect.
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
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
