Skip to main content

Module priority

Module priority 

Source
Expand description

RFC 9218 HTTP priority signal builder.

Cold install issues two request classes against the same origin: tiny critical packuments (resolver-blocking) and large tarballs (fetch-phase, can stream lazily). Marking packuments urgent lets HTTP/2-aware origins schedule them ahead of pending tarball frames on the same connection.

Enums§

Urgency
RFC 9218 §4.1 — request urgency, 0 = highest, 7 = lowest. Default 3 matches RFC §4.1 when no header is sent.

Functions§

header_value
Build the Priority: header value per RFC 9218 §4. incremental signals the server may deliver the response in chunks (true for tarballs, false for packuments where the consumer parses JSON whole).