File size: 4,256 Bytes
78e7c43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
  "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"
    }
  ]
}