Expand description
Outbound network transports for fetchlet applications.
The http feature adds HttpClient, which sends JavaScript’s outbound
fetch requests as a FetchTransport; the sockets feature adds
TcpTransport, which opens the TCP and TLS connections of JavaScript’s
connect() for a SocketService; and the websocket feature adds
WebSocketClient, which opens the connections of JavaScript’s
WebSocket for a WebSocketService. Each resolves names, refuses
non-public addresses unless allowed and speaks TLS with rustls.
The JavaScript engine is chosen on the fetchlet crate.
Re-exports§
pub use network::rustls;
Structs§
- Http
Client - A
FetchTransportthat sends JavaScript’s outboundfetchrequests to HTTP servers, with TLS forhttps:. - TcpTransport
- A
SocketTransportthat opens TCP connections, with TLS from the start forsecureTransport: "on"and afterstartTls()for"starttls". - WebSocket
Client - A
WebSocketTransportthat opens client WebSockets over TCP, with TLS forwss:.