pub fn start_http<M, S, H, T, A, B>(
    addr: &SocketAddr,
    cors_domains: DomainsValidation<AccessControlAllowOrigin>,
    allowed_hosts: DomainsValidation<Host>,
    health_api: Option<(A, B)>,
    handler: H,
    extractor: T,
    threads: usize,
    max_payload: usize,
    keep_alive: bool
) -> Result<HttpServer> where
    M: Metadata + Unpin,
    S: Middleware<M>,
    S::Future: Unpin,
    S::CallFuture: Unpin,
    H: Into<MetaIoHandler<M, S>>,
    T: MetaExtractor<M>,
    A: Into<String>,
    B: Into<String>, 
Expand description

Start http server asynchronously and returns result with Server handle on success or an error.