Skip to main content

accept_hdr_with_config_async

Function accept_hdr_with_config_async 

Source
pub async fn accept_hdr_with_config_async<S, T, C>(
    stream: T,
    callback: C,
    config: impl Into<Config>,
) -> Result<WebSocketStream<S>, Error>
where S: AsFd + 'static, T: IntoMaybeTlsStream<S>, C: Callback + Unpin,
Available on crate feature ws only.
Expand description

Similar to accept_hdr_async() but user can specify a Config.