Skip to content

Commit

Permalink
path-gateway: clarify Range should support single range
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias authored and lidel committed Aug 4, 2023
1 parent 7545f1e commit 66ebfc6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/http-gateways/path-gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,22 @@ For example:

### `Range` (request header)

`Range` can be used for requesting specific byte ranges of UnixFS files and raw
`Range` can be used for requesting specific byte range of UnixFS files and raw
blocks.

Gateway implementations SHOULD be smart enough to require only the minimal DAG subset
necessary for handling the range request.

NOTE: for more advanced use cases such as partial DAG/CAR streaming, or
non-UnixFS data structures, see the `selector` query parameter
[proposal](https://github.com/ipfs/go-ipfs/issues/8769).
Gateways SHOULD support single range requests. The support of more than one
range is optional: implementation MAY decide to not support more than one range.

:::note

For more advanced use cases such as partial DAG/CAR streaming, or non-UnixFS
data structures, see `dag-scope` and `entity-bytes` from :cite[ipip-0412] and
ordered CARs from :cite[ipip-0412].

:::

### `Service-Worker` (request header)

Expand Down

0 comments on commit 66ebfc6

Please sign in to comment.