fetchlet-net
Outbound HTTP, TCP/TLS socket, and WebSocket transports for
fetchlet applications. Each transport
pairs with fetchlet's allowlist policies, resolves DNS in Rust, blocks
non-public IP addresses by default to prevent SSRF, and speaks TLS with rustls
and webpki-roots.
Quick example
use ;
use HttpClient;
let policy = deny_all.allow_origin?;
let hosts = new
.outbound;
Cargo features
| Feature | Adds |
|---|---|
http (default) |
HttpClient — HTTP/1.1 & HTTP/2 transport for fetch() |
sockets (default) |
TcpTransport — TCP, TLS, and STARTTLS for connect() |
websocket (default) |
WebSocketClient — client transport for global WebSocket |
rustls is re-exported for custom TLS configs passed to with_tls_config().
Documentation
- Guide: https://fetchlet.roundtrip.dev/docs/rust/fetchlet-net
- API reference: https://docs.rs/fetchlet-net
- Full documentation: https://fetchlet.roundtrip.dev/docs
- Coding agents: installing the
fetchletnpm package bundles Markdown docs and skills innode_modules/fetchlet/(guide).