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>
Available on crate feature ws only.
Expand description

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