Module client
Methods to connect to a WebSocket as a client.
Structs
-
ClientRequestBuilder
Builder for a custom
IntoClientRequestwith options to add custom additional headers and sub protocols.
Traits
- IntoClientRequest Trait for converting various types into HTTP requests used for a client connection.
Functions
- client Do the client handshake over the given stream.
-
client_with_config
Do the client handshake over the given stream given a web socket configuration. Passing
Noneas configuration is equal to callingclient()function. - connect Connect to the given WebSocket in blocking mode.
- connect_with_config Connect to the given WebSocket in blocking mode.
- uri_mode Get the mode of the given URL.