Home /Modules/http-4.0/CARRIER.md

CARRIER.md

http-4.0/CARRIER.md · 46 line(s) · markdown

HTTP 4.0 Carrier Model

SLeeLa HTTP 4.0 is a protocol layer, not a replacement for an operating-system transport.

Initial carrier: HTTP/3

The first interoperable carrier is HTTP/3. An HTTP/3 request/response body carries a sequence of HTTP 4.0 frames as opaque application bytes.

The carrier is responsible for:

HTTP 4.0 is responsible for:

This separation prevents HTTP 4.0 from pretending that application-level frames replace QUIC transport semantics.

Future carriers

A future carrier may provide a native SLeeLa socket or another transport. Such a carrier MUST preserve the HTTP 4.0 frame semantics or explicitly negotiate a different profile.

Carrier invariants

A carrier MUST NOT rewrite an HTTP 4.0 payload after validation. In particular, it MUST preserve:

A carrier MAY split or coalesce transport reads, because the HTTP 4.0 decoder is length-bounded.

Security contract

A production carrier must provide an authenticated and integrity-protected transport before HTTP/4 application data is trusted. For the HTTP/3/QUIC carrier, this security is supplied by QUIC's TLS 1.3 integration rather than by a second TLS layer inside HTTP/4. HTTP/4 remains responsible for its own framing, state, sequence, segmentation, and resource-limit validation.

The carrier adapter should expose at least: authenticated-session state, negotiated maximum usable packet/datagram size, handshake completion state, peer identity status, and orderly connection-close/error state. The HTTP/4 layer can then select an MTU-safe segment size without coupling its core framing code to a particular TLS library.