Module reimports

Source

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
Request
Represents an HTTP request.
WebSocketStream
A wrapper around an underlying raw stream which implements the WebSocket protocol.

Enums§

Connector
A connector that can be used when establishing connections, allowing to control whether native-tls or rustls is used to create a TLS connection. Or TLS can be disabled with the Plain variant.
MaybeTlsStream
A stream that might be protected with TLS.
Message
An enum representing the various forms of a WebSocket message.

Functions§

connect_async_tls_with_config
The same as connect_async() but the one can specify a websocket configuration, and a TLS connector to use. Please refer to connect_async() for more details. disable_nagle specifies if the Nagle’s algorithm must be disabled, i.e. set_nodelay(true). If you don’t know what the Nagle’s algorithm is, better leave it to false.
generate_key
Generate a random key for the Sec-WebSocket-Key header.