Function async_tungstenite::gio::accept_hdr_async_with_config
source ยท pub async fn accept_hdr_async_with_config<S, C>(
stream: S,
callback: C,
config: Option<WebSocketConfig>,
) -> Result<WebSocketStream<IOStreamAsyncReadWrite<S>>, Error>
Expand description
The same as accept_hdr_async()
but the one can specify a websocket configuration.
Please refer to accept_hdr_async()
for more details.