Skip to content

Commit 749e8f8

Browse files
committed
Add Allow example for targetHints
1 parent 41cb6a3 commit 749e8f8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

jsonschema-hyperschema.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,29 @@ for varname in templateData:
14701470
In general, headers that are likely to have different values at different
14711471
times SHOULD NOT be included in "targetHints".
14721472
</t>
1473+
<figure>
1474+
<preamble>
1475+
As an example, an Allow header allowing HEAD, GET, and POST
1476+
would be shown as follows:
1477+
</preamble>
1478+
<artwork>
1479+
<![CDATA[
1480+
{
1481+
"targetHints": {
1482+
"allow": ["HEAD", "GET", "POST]
1483+
}
1484+
}
1485+
]]>
1486+
</artwork>
1487+
<postamble>
1488+
Note that this is represented identically whether there is
1489+
a single-line Allow header with comma-separated values,
1490+
multiple Allow headers on separate lines, each with one value,
1491+
or any combination of such arrangements. As is generally true
1492+
with HTTP headers, comma-separated values and multiple occurrences
1493+
of the header are treated the same way.
1494+
</postamble>
1495+
</figure>
14731496
</section>
14741497
<section title='Advertising HTTP Features With "headerSchema"'>
14751498
<t>

0 commit comments

Comments
 (0)