Buckets:

download
raw
1.09 kB
"""Shared constants for OSPREY's HTTP reverse-proxy / relay hops.
OSPREY has more than one component that relays an upstream HTTP response back
to a browser: the web-terminal panel proxy
(``osprey.interfaces.web_terminal.routes.proxy``) and the bluesky-web
sidecar's SSE draft relay (``osprey.interfaces.bluesky_web.draft_relay``).
Each must strip the same hop-by-hop headers before re-emitting the upstream's
headers downstream -- a header list that had been copied verbatim between them.
Keeping it here, imported by both, prevents the two lists from drifting.
"""
from __future__ import annotations
# Hop-by-hop headers (RFC 7230 sec. 6.1, plus the two content-framing headers a
# reverse proxy must recompute) that must never be relayed from an upstream
# response onto the downstream client connection.
HOP_BY_HOP = frozenset(
{
"connection",
"keep-alive",
"proxy-authenticate",
"proxy-authorization",
"te",
"trailers",
"transfer-encoding",
"upgrade",
"content-encoding",
"content-length",
}
)

Xet Storage Details

Size:
1.09 kB
·
Xet hash:
5077c599280f0391bfe1ddd1d71bd22d67e394b803805166a9ce8b65c0435072

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.