Re-exports§
pub use super::server::HttpResponse;
pub use super::server::WsMessageType;
Structs§
- Outgoing
Http Request - HTTP Request type contained in
HttpClientAction::Http
.
Enums§
- Http
Client Action crate::Request
type sent to thehttp-client:distro:sys
service in order to open a WebSocket connection, send a WebSocket message on an existing connection, or send an HTTP request.- Http
Client Error - Http
Client Request crate::Request
that comes from an open WebSocket client connection in thehttp-client:distro:sys
service. Be prepared to receive these after using aHttpClientAction::WebSocketOpen
to open a connection.- Http
Client Response crate::Response
type received from thehttp-client:distro:sys
service after sending a successfulHttpClientAction
to it.
Functions§
- close_
ws_ connection - Close a WebSocket connection.
- open_
ws_ connection - send_
request - Fire off an HTTP request. If a timeout is given, the response will come in the main event loop, otherwise none will be given.
- send_
request_ await_ response - Make an HTTP request using http-client and await its response.
- send_
ws_ client_ push - Send a WebSocket push message on an open WebSocket channel.