fetchlet-http
Serve a fetchlet build artifact over HTTP
(axum, hyper, actix-web, or Tower) or inside a Tauri webview over a custom URI
scheme.
Quick example
use HostServices;
use Server;
async
Select your JavaScript engine (quickjs, boa, or v8) on the fetchlet
crate; fetchlet-http has no engine features of its own.
Cargo features
| Feature | Adds |
|---|---|
| (none) | FetchletService (Tower, http 1), service_transport, Artifact, AssetArchive, AssetService |
hyper |
HyperService, HyperConnection, PeerAddr for hyper 1 |
axum |
Server, AxumService, connect_info, router_transport, artifact_router |
actix |
ActixService for actix-web 4 |
axum-websocket |
Server WebSocket upgrades in AxumService and Server (enables axum) |
actix-websocket |
Server WebSocket upgrades in ActixService (enables actix) |
dev-reload |
DevReload for reloading rebuilt artifacts during development |
vite-dev |
ViteDev for running server modules directly from a Vite dev server |
process |
Server::isolation for child-process isolation |
For outbound HTTP, TCP, and WebSocket clients from JavaScript, see
fetchlet-net.
Documentation
- Guide: https://fetchlet.roundtrip.dev/docs/rust/fetchlet-http
- API reference: https://docs.rs/fetchlet-http
- Full documentation: https://fetchlet.roundtrip.dev/docs
- Coding agents: installing the
fetchletnpm package bundles Markdown docs and skills innode_modules/fetchlet/(guide).