You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gateway: raw-blob Content-Length, HEAD and Range from the first node's size claim #2616
Today. A bundle entry with a size in its manifest answers HEAD with Content-Length, takes one Range (206/416) and advertises Accept-Ranges: bytes (#2612). A raw blob (GET /<hash> on the bare host, or /_decdn/<hash> on a site) streams with no length and ignores Range: nothing knows its size before a pull, and the gateway refuses to pay for a pull just to answer HEAD.
Ask. Raw-blob Content-Length, HEAD and Range without a manifest. The client learns the blob's size from the first node's signed size claim at the start of a pull, before any paid byte; hand that claim back to the gateway (e.g. BlobFetch.claim: oneshot::Sender<u64> filled from first_claim) so the response can set Content-Length, admit the request by its size against the allowance, and serve bytes=a-b through Streamer::open_range as entries do. HEAD on a raw blob would still cost the claim handshake (one probe, no bytes); say so in adr/appendix-gateway.md § Ranges, which currently documents the limitation.
Why.curl -r, resumed downloads and BEP 19 webseeds work on entries but not on bare hashes, and a download manager that sees no Content-Length shows no progress.
Activity
fix(gateway,client): size a verified raw blob, and adopt the size ope…
feat(gateway,client): prove a raw blob's size before its first byte