Skip to main content

Crate iroh_h3_axum

Crate iroh_h3_axum 

Source
Expand description

§iroh-h3-axum

This crate provides an integration between the Axum web framework and the iroh peer-to-peer library using HTTP/3.
It allows you to serve Axum routers over iroh, reusing connections and handling multiple concurrent HTTP/3 streams efficiently.

§Features

  • Serve HTTP/3 endpoints using Axum routes
  • Wrap QUIC streams as Axum-compatible request bodies
  • Stream response bodies over HTTP/3
  • Provide access to the remote iroh endpoint ID via request extensions

Structs§

IrohAxum
An HTTP/3 protocol handler that serves an axum::Router over iroh.
RemoteId
An Axum request extractor for the remote endpoint ID.