mirror of
https://github.com/hzrd149/blossom.git
synced 2025-12-08 14:58:49 +00:00
Merge pull request #47 from hzrd149/range-requests
Recomend range requests to BUD-01
This commit is contained in:
@@ -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 `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
|
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, video files, or low bandwidth connections. servers 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
|
||||||
|
|||||||
Reference in New Issue
Block a user