http-rs / http-rs/tide-websockets
Send a custom HTTP header for "101 Upgrade" response
Open
- Dominant language
- Rust
- Stars
- 75
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
I need to be able to send a custom HTTP header in the `101 Upgrade` response (as part of WebSocket connection initialisation), around about here:
https://github.com/http-rs/tide-websockets/blob/c3e1d987911dd7b411b90238d92d29fc047b59bc/src/handler.rs#L175-L180
It'd be nice to be able to have some extension to the `handler` so that my code can do some work to add this header in, and have some extra connection-level state along with the `WebSocketStream`.
Contributor guide
Assessment
This issue has not been assessed yet.