Skip to main content

spawn_accept_http_opts

Function spawn_accept_http_opts 

Source
pub fn spawn_accept_http_opts(
    listener: TcpListener,
    acceptor: Arc<HttpAcceptor>,
    handler: Arc<dyn Handler>,
    auth: Arc<dyn HttpAuth>,
    subs: SubRegistry,
    conn_counter: Arc<AtomicU64>,
    write_timeout: Duration,
    opts: ServeOptions,
) -> Result<()>
Expand description

spawn_accept_http with explicit ServeOptions (extra browser origins).