HTTP支持端点下载
range requests:
o The first 500 bytes (byte offsets 0-499, inclusive): bytes=0-499
o The second 500 bytes (byte offsets 500-999, inclusive): bytes=500-999
o The final 500 bytes (byte offsets 9500-9999, inclusive): bytes=-500
Or:
bytes=9500-
o The first and last bytes only (bytes 0 and 9999):
bytes=0-0,-1
o Other valid (but not canonical) specifications of the second 500
bytes (byte offsets 500-999, inclusive):
bytes=500-600,601-999
bytes=500-700,601-999
WARNING:
A byte-range-spec is invalid if the last-byte-pos value is present and less than the first-byte-pos
Range
Conent-Range
Content-Range: bytes 42-1233/1234
Content-Range: bytes 42-1233/*
Content-Range: bytes */1234
o The first 500 bytes:
Content-Range: bytes 0-499/1234
o The second 500 bytes:
Content-Range: bytes 500-999/1234
o All except for the first 500 bytes:
Content-Range: bytes 500-1233/1234
o The last 500 bytes:
Content-Range: bytes 734-1233/1234
Accecp-ranges
Accept-Ranges: bytes