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: Splittable + 'static,
T: IntoMaybeTlsStream<S>,
C: Callback + Unpin,
<S as Splittable>::ReadHalf: AsyncRead + Unpin,
<S as Splittable>::WriteHalf: AsyncWrite + Unpin,Available on crate feature
ws only.Expand description
Similar to accept_hdr_async() but user can specify a Config.