websockets-rs / rust-websocket

A WebSocket (RFC6455) library written in Rust
http://websockets-rs.github.io/rust-websocket/
MIT License
1.55k stars 223 forks source link

Using ClientBuilder For HTTP Authentication #164

Open git-blame opened 6 years ago

git-blame commented 6 years ago

As websocket does not specify an authentication mechanism, I'm probably going to use standard http(s) authentication (e.g., username/password) or token. Is it possible to do this through the ClientBuilder API or do I have to use a separate method such as HttpClientCodec?

I want to re-use the TLS stream and possibly any cookies or headers set by the server.