Module client
Expand description
WebSocket client types and utilities
Structs§
- Accepted
WebSocket Data - Client
WebSocket - Client [
WebSocket
], used as input-output stream. - Handshake
Request - Request data to be used by an http client to initiate an http request.
- Negotiated
Handshake Request - Intermediate websocket handshake created by
WebSocketRequestBuilder::initiate_handshake
. - WebSocket
Request Builder - Builder that can be used by clients to initiate the WebSocket handshake.
- With
Service WebSocketRequestBuilder
inner wrapper type used for a builder, which includes a service, and thus is there to actually send the request as well and even follow up.
Enums§
- Handshake
Error - Client error which can be triggered in case the handshake phase failed.
- Response
Validate Error - Client error which can be triggered in case the response validation failed
Traits§
- Http
Client WebSocket Ext - Extends an Http Client with high level features WebSocket features.
Functions§
- validate_
http_ server_ response - Validate the “accept” response from the http server with whom the client is trying to establish a WebSocket connection.