From 36a741a87b74eaea1fb9631809c8a55870d00574 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Sat, 23 Nov 2024 09:26:38 -0600 Subject: [PATCH] add range requests section to BUD-01 --- buds/01.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buds/01.md b/buds/01.md index e94b8d4..a9cd558 100644 --- a/buds/01.md +++ b/buds/01.md @@ -134,3 +134,9 @@ Example event for retrieving multiple blobs from single server: The `HEAD /` 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 /` 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 /` endpoint and signal support using the `accept-ranges: bytes` and `content-length` headers on the `HEAD /` endpoint + +See [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests) for more details