Spaces:
Running
Running
Download examples.json from WideChaos/http-range-desk: direct link, hf CLI and curl.
- Browser
- Download file 4.26 kB
-
https://huggingface.co/spaces/WideChaos/http-range-desk/resolve/main/examples.json
- Command line
-
hf download hf://spaces/WideChaos/http-range-desk/examples.json
-
curl -L -o examples.json https://huggingface.co/spaces/WideChaos/http-range-desk/resolve/main/examples.json
4.26 kB
| { | |
| "schema": "http-range-desk-examples-v1", | |
| "examples": [ | |
| { | |
| "id": "overlap", | |
| "title": "Overlapping parts: 11 selected bytes, 9 unique", | |
| "request": { | |
| "method": "GET", | |
| "base_status": 200, | |
| "resource": { | |
| "length": "10", | |
| "etag": "\"resource-v1\"", | |
| "last_modified": "Sun, 06 Nov 1994 08:49:37 GMT", | |
| "date_is_strong": true | |
| }, | |
| "range": "bytes=0-4,3-8", | |
| "if_range": null | |
| }, | |
| "payload": null, | |
| "payload_sha256": null | |
| }, | |
| { | |
| "id": "utf8", | |
| "title": "Actual binary slices can split a UTF-8 character", | |
| "request": { | |
| "method": "GET", | |
| "base_status": 200, | |
| "resource": { | |
| "length": "13", | |
| "etag": "\"resource-v1\"", | |
| "last_modified": "Sun, 06 Nov 1994 08:49:37 GMT", | |
| "date_is_strong": true | |
| }, | |
| "range": "bytes=1-2,5-7,-2", | |
| "if_range": null | |
| }, | |
| "payload": "fixtures/payloads/utf8-crlf.bin", | |
| "payload_sha256": "daec746102de508d3a1dc1cc019e8326d07cff91bb406a904893f032beeb0925" | |
| }, | |
| { | |
| "id": "empty", | |
| "title": "Empty file: satisfiable suffix, optional ignore policy", | |
| "request": { | |
| "method": "GET", | |
| "base_status": 200, | |
| "resource": { | |
| "length": "0", | |
| "etag": "\"resource-v1\"", | |
| "last_modified": "Sun, 06 Nov 1994 08:49:37 GMT", | |
| "date_is_strong": true | |
| }, | |
| "range": "bytes=-1", | |
| "if_range": null | |
| }, | |
| "payload": "fixtures/payloads/empty.bin", | |
| "payload_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" | |
| }, | |
| { | |
| "id": "big", | |
| "title": "Exact offsets beyond JavaScript safe integers", | |
| "request": { | |
| "method": "GET", | |
| "base_status": 200, | |
| "resource": { | |
| "length": "9223372036854775807", | |
| "etag": "\"resource-v1\"", | |
| "last_modified": "Sun, 06 Nov 1994 08:49:37 GMT", | |
| "date_is_strong": true | |
| }, | |
| "range": "bytes=9007199254740993-9007199254740995,-2", | |
| "if_range": null | |
| }, | |
| "payload": null, | |
| "payload_sha256": null | |
| }, | |
| { | |
| "id": "future", | |
| "title": "If-Range future date fails exact comparison", | |
| "request": { | |
| "method": "GET", | |
| "base_status": 200, | |
| "resource": { | |
| "length": "10", | |
| "etag": "\"resource-v1\"", | |
| "last_modified": "Sun, 06 Nov 1994 08:49:37 GMT", | |
| "date_is_strong": true | |
| }, | |
| "range": "bytes=0-0", | |
| "if_range": "Sun, 06 Nov 1994 08:49:38 GMT" | |
| }, | |
| "payload": null, | |
| "payload_sha256": null | |
| }, | |
| { | |
| "id": "malformed", | |
| "title": "One malformed member invalidates the whole Range", | |
| "request": { | |
| "method": "GET", | |
| "base_status": 200, | |
| "resource": { | |
| "length": "10", | |
| "etag": "\"resource-v1\"", | |
| "last_modified": "Sun, 06 Nov 1994 08:49:37 GMT", | |
| "date_is_strong": true | |
| }, | |
| "range": "bytes=0-0,8-2", | |
| "if_range": null | |
| }, | |
| "payload": null, | |
| "payload_sha256": null | |
| }, | |
| { | |
| "id": "not-modified", | |
| "title": "Caller-supplied 304 takes precedence", | |
| "request": { | |
| "method": "GET", | |
| "base_status": 304, | |
| "resource": { | |
| "length": "10", | |
| "etag": "\"resource-v1\"", | |
| "last_modified": "Sun, 06 Nov 1994 08:49:37 GMT", | |
| "date_is_strong": true | |
| }, | |
| "range": "bytes=bad", | |
| "if_range": null | |
| }, | |
| "payload": null, | |
| "payload_sha256": null | |
| }, | |
| { | |
| "id": "all-bytes", | |
| "title": "Observe first and last bytes of a real binary file", | |
| "request": { | |
| "method": "GET", | |
| "base_status": 200, | |
| "resource": { | |
| "length": "256", | |
| "etag": "\"resource-v1\"", | |
| "last_modified": "Sun, 06 Nov 1994 08:49:37 GMT", | |
| "date_is_strong": true | |
| }, | |
| "range": "bytes=0-31,-32", | |
| "if_range": null | |
| }, | |
| "payload": "fixtures/payloads/all-bytes.bin", | |
| "payload_sha256": "40aff2e9d2d8922e47afd4648e6967497158785fbd1da870e7110266bf944880" | |
| } | |
| ] | |
| } | |