blob: caf5c2056b9583cc17802daab89ae8f585bff762 (
plain)
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
|
---
title: Accept-Patch
slug: Web/HTTP/Headers/Accept-Patch
tags:
- HTTP
- Reference
translation_of: Web/HTTP/Headers/Accept-Patch
---
<div>{{HTTPSidebar}}</div>
<p><strong><code>Accept-Patch</code></strong> は HTTP のレスポンスヘッダーで、サーバーが認識できるメディアタイプを伝えます。</p>
<p>任意のメソッドに応答する<strong><code>Accept-Patch</code></strong>は、Request-URIで識別されるリソースで、 {{HTTPMethod("PATCH")}} が許可されることを意味します。 2つの一般的なケースがこれにつながります。</p>
<p>サポートされていないメディアタイプの {{HTTPMethod("PATCH")}} リクエストを受信したサーバーは、{{HTTPStatus("415")}} <code>Unsupported Media Type</code>と、1つ以上のサポートされているメディアタイプを参照するAccept-Patchヘッダーで応答する可能性があります。</p>
<div class="note"><strong>注:</strong>
<ul>
<li>
<p>IANA レジストリは、<a href="https://www.iana.org/assignments/http-parameters/http-parameters.xml#http-parameters-1">公式コンテンツエンコーディングの完全なリスト</a>を保持しています。</p>
</li>
<li>標準ではありませんが、他の2つのコンテンツエンコーディング <code>bzip</code>と<code>bzip2</code>が時々使用されます。 これらは、これら2つのUNIXプログラムで使用されるアルゴリズムを実装しています。 最初のものは、特許ライセンスの問題のために中止されたことに注意してください。</li>
</ul>
</div>
<table class="properties">
<tbody>
<tr>
<th scope="row">ヘッダー種別</th>
<td>{{Glossary("Response header", "レスポンスヘッダー")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name", "禁止ヘッダー名")}}</th>
<td>はい</td>
</tr>
</tbody>
</table>
<h2 id="Syntax" name="Syntax">構文</h2>
<pre class="syntaxbox notranslate">Accept-Patch: application/example, text/example
Accept-Patch: text/example;charset=utf-8
Accept-Patch: application/merge-patch+json
</pre>
<h2 id="Directives" name="Directives">ディレクティブ</h2>
<p>なし</p>
<h2 id="Examples" name="Examples">例</h2>
<pre class="syntaxbox notranslate">Accept-Patch: application/example, text/example
Accept-Patch: text/example;charset=utf-8
Accept-Patch: application/merge-patch+json
</pre>
<h2 id="Specifications" name="Specifications">仕様書</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">仕様書</th>
<th scope="col">題名</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{RFC("5789", "Accept-Patch", "3.1")}}</td>
<td>HTTP PATCH</td>
</tr>
</tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
<p>{{Compat("http.headers.Accept-Patch")}}</p>
<h2 id="See_also" name="See_also">関連情報</h2>
<ul>
<li>Http method {{HTTPMethod("PATCH")}}</li>
<li>HTTP Semantic and context {{RFC("7231", "PUT", "4.3.4")}}</li>
</ul>
|