In the Rust SDK, this is done with the [Request::handoff_websocket](https://docs.rs/fastly/latest/fastly/struct.Request.html#method.handoff_websocket) method.