From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- files/uk/web/http/status/206/index.html | 84 +++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 files/uk/web/http/status/206/index.html (limited to 'files/uk/web/http/status/206/index.html') diff --git a/files/uk/web/http/status/206/index.html b/files/uk/web/http/status/206/index.html new file mode 100644 index 0000000000..9c4da2ba75 --- /dev/null +++ b/files/uk/web/http/status/206/index.html @@ -0,0 +1,84 @@ +--- +title: 206 Частковий вміст +slug: Web/HTTP/Status/206 +tags: + - 206 Частковий зміст + - HTTP + - HTTP Статус + - Запити діапазону +translation_of: Web/HTTP/Status/206 +--- +
{{HTTPSidebar}}
+ +

Код статусу HTTP 206 Partial Content вказує на те, що запит був успішним, і його тіло містить запитувані діапазони даних, як описано в заголовку {{HTTPHeader ("Range")}} запиту.

+ +

Якщо є лише один діапазон, {{HTTPHeader ("Content-Type")}} всієї відповіді встановлюється на тип документа, а також {{HTTPHeader ("Content-Range")}}.

+ +

Якщо декілька діапазонів відправлені назад, {{HTTPHeader ("Content-Type")}} встановлюється на multipart/byteranges, а кожен фрагмент охоплює один діапазон, з {{HTTPHeader ("Content-Range")}} і {{HTTPHeader ("Content-Type") }} описуючи його.

+ +

Статус

+ +
206 Partial Content
+ +

Приклади

+ +

Відповідь, що містить один єдиний діапазон:

+ +
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/47022
+Content-Length: 26012
+Content-Type: image/gif
+
+... 26012 bytes of partial image data ...
+ +

Відповідь, що містить кілька діапазонів:

+ +
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: 1741
+Content-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--
+ +

Специфікації

+ + + + + + + + + + + + +
SpecificationTitle
{{RFC("7233", "206 Partial Content" , "4.1")}}Hypertext Transfer Protocol (HTTP/1.1): Range Requests
+ +

Сумісність з браузерами

+ + + +

{{Compat("http.status.206")}}

+ +

Дивись також

+ + -- cgit v1.2.3-54-g00ecf