Skip to main content

Crate servoh_transport

Crate servoh_transport 

Source
Expand description

Shared transport primitives for standard HTTP/1 over iroh.

The ALPN is the only custom wire-level version marker. Every native bidirectional stream starts with one ordinary HTTP/1 exchange. A successful RFC 6455 Upgrade then transfers that stream to standard WebSocket frames; this crate adds no application framing or metadata encoding.

Structs§

BiStream
A native iroh bidirectional stream presented as one Tokio duplex byte stream.

Constants§

ACCESS_DENIED
Native QUIC application error used for an authenticated but denied client.
CANCELLED
Native QUIC application error used when a stream exchange is cancelled.
HTTP_ALPN
Versioned ALPN for standard HTTP/1 bytes over one iroh stream per exchange.
OVERLOADED
Native QUIC application error used when server admission is saturated.

Functions§

is_valid_service_name
Returns whether service is a canonical Servoh service name.