bind_http

Function bind_http 

Source
pub fn bind_http<F, I, S, B, K, C>(
    main: HttpServer<F, I, S, B>,
    bind_addr: String,
    tls_auth_config: Option<TlsAuthConfig>,
    key_file: Option<K>,
    cert_bundle_file: Option<C>,
) -> Result<HttpServer<F, I, S, B>>
where F: Fn() -> I + Send + Clone + 'static, I: IntoServiceFactory<S, Request>, S: ServiceFactory<Request, Config = AppConfig> + 'static, S::Error: Into<Error> + 'static, S::InitError: Debug, S::Response: Into<Response<B>> + 'static, B: MessageBody + 'static, K: AsRef<Path>, C: AsRef<Path>,
Expand description

Bind HTTP server to HTTP or HTTPS port, using an enabled TLS implementation.