add range requests section to BUD-01

This commit is contained in:
hzrd149 2024-11-23 09:26:38 -06:00
parent 854218f573
commit 36a741a87b
1 changed files with 6 additions and 0 deletions

View File

@ -134,3 +134,9 @@ Example event for retrieving multiple blobs from single server:
The `HEAD /<sha256>` endpoint MUST respond with either a `200` or `404` status code
The endpoint MUST accept an optional file extension in the URL similar to the `GET /<sha256>` endpoint. ie. `.pdf`, `.png`, etc
## Range requests
To better support mobile devices or low bandwidth connections. server should support range requests ([RFC 7233 section 3](https://www.rfc-editor.org/rfc/rfc7233#section-3)) on the `GET /<sha256>` endpoint and signal support using the `accept-ranges: bytes` and `content-length` headers on the `HEAD /<sha256>` endpoint
See [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests) for more details