Module client

Source

Re-exports§

pub use super::server::HttpResponse;
pub use super::server::WsMessageType;

Structs§

OutgoingHttpRequest
HTTP Request type contained in HttpClientAction::Http.

Enums§

HttpClientAction
crate::Request type sent to the http-client:distro:sys service in order to open a WebSocket connection, send a WebSocket message on an existing connection, or send an HTTP request.
HttpClientError
HttpClientRequest
crate::Request that comes from an open WebSocket client connection in the http-client:distro:sys service. Be prepared to receive these after using a HttpClientAction::WebSocketOpen to open a connection.
HttpClientResponse
crate::Response type received from the http-client:distro:sys service after sending a successful HttpClientAction 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.