iroh-http-core
Rust core for iroh-http. Runs HTTP/1.1 over Iroh QUIC bidirectional streams via hyper. Nodes are addressed by Ed25519 public key.
This is an FFI-bridge crate. Application developers should use the higher-level adapters:
- Node.js →
@momics/iroh-http-node- Deno →
@momics/iroh-http-deno- Tauri →
@momics/iroh-http-tauri
Usage
use ;
async
Features
- Connection reuse: QUIC connections to the same peer are pooled and multiplexed
- Streaming bodies: request and response bodies stream through
mpscchannels with configurable backpressure - Fetch cancellation: abort in-flight requests via cancellation tokens
- Bidirectional streams: full-duplex streaming via QUIC bidi streams
- Trailer support: HTTP/1.1 chunked trailers for streaming metadata
- Configurable: idle timeout, concurrency limits, channel capacity, chunk sizes
- Optional compression: zstd request/response compression via the
compressionfeature (enabled by default)
License
MIT OR Apache-2.0