?
This document uses PHP Chinese website manual Release
HTTP 206 Partial Content
成功狀態(tài)響應(yīng)代碼指示請求已成功并且主體包含所請求的數(shù)據(jù)范圍,如Range
請求標(biāo)題中所述。
如果只有一個(gè)范圍,則整個(gè)響應(yīng)Content-Type
設(shè)置為文檔的類型,并提供一個(gè)Content-Range
。
如果發(fā)送了幾個(gè)范圍,則Content-Type
設(shè)置為multipart/byteranges
并且每個(gè)片段都覆蓋一個(gè)范圍,并且使用Content-Range
和Content-Type
對其進(jìn)行描述。
206 Partial Content
包含一個(gè)范圍的響應(yīng):
HTTP/1.1 206 Partial Content Date: Wed, 15 Nov 2015 06:25:24 GMT Last-Modified: Wed, 15 Nov 2015 04:58:08 GMT Content-Range: bytes 21010-47021/47022Content-Length: 26012Content-Type: image/gif... 26012 bytes of partial image data ...
包含以下幾個(gè)范圍的響應(yīng):
HTTP/1.1 206 Partial Content Date: Wed, 15 Nov 2015 06:25:24 GMT Last-Modified: Wed, 15 Nov 2015 04:58:08 GMT Content-Length: 1741Content-Type: multipart/byteranges; boundary=String_separator--String_separator Content-Type: application/pdf Content-Range: bytes 234-639/8000...the first range...--String_separator Content-Type: application/pdf Content-Range: bytes 4590-7999/8000...the second range--String_separator--
規(guī)范 | 標(biāo)題 |
---|---|
RFC 7233,第4.1節(jié):206部分內(nèi)容 | 超文本傳輸協(xié)議(HTTP / 1.1):范圍請求 |
Feature | Chrome | Firefox | Edge | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
If-Range
Range
Content-Range
Content-Type