Skip to main content

Crate fetchlet_net

Crate fetchlet_net 

Source
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§

HttpClient
A FetchTransport that sends JavaScript’s outbound fetch requests to HTTP servers, with TLS for https:.
TcpTransport
A SocketTransport that opens TCP connections, with TLS from the start for secureTransport: "on" and after startTls() for "starttls".
WebSocketClient
A WebSocketTransport that opens client WebSockets over TCP, with TLS for wss:.