Skip to content

Commit

Permalink
Merge pull request #382 from httpwg/reschke-48
Browse files Browse the repository at this point in the history
Allow "Accept" in response messages (#48)
  • Loading branch information
royfielding committed Jul 1, 2020
2 parents 6f06d55 + 67007a1 commit 9837f3c
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions draft-ietf-httpbis-semantics-latest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6265,6 +6265,11 @@ Expect: 100-continue
a small set of desired types, as in the case of a request for an in-line
image.
</t>
<t>
When sent by a server in a response, Accept provides information
about what content types are preferred in the payload of a subsequent
request to the same resource.
</t>
<sourcecode type="abnf7230"><iref primary="true" item="Grammar" subitem="Accept"/><iref primary="true" item="Grammar" subitem="media-range"/><iref primary="true" item="Grammar" subitem="accept-params"/><iref primary="true" item="Grammar" subitem="accept-ext"/>
<x:ref>Accept</x:ref> = #( <x:ref>media-range</x:ref> [ <x:ref>accept-params</x:ref> ] )

Expand Down Expand Up @@ -8671,12 +8676,21 @@ Content-Range: bytes 7000-7999/8000
<t>
The format problem might be due to the request's indicated
<x:ref>Content-Type</x:ref> or <x:ref>Content-Encoding</x:ref>, or as a
result of inspecting the data directly. If the problem was caused by an
unsupported content coding, the <x:ref>Accept-Encoding</x:ref>
response header field (<xref target="field.accept-encoding"/>) ought to be
result of inspecting the data directly.
</t>
<t>
If the problem was caused by an unsupported content coding, the
<x:ref>Accept-Encoding</x:ref> response header field
(<xref target="field.accept-encoding"/>) ought to be
used to indicate what (if any) content codings would have been accepted
in the request.
</t>
<t>
On the other hand, if the cause was an unsupported media type, the
<x:ref>Accept</x:ref> response header field (<xref target="field.accept"/>)
can be used to indicate what media types would have been accepted
in the request.
</t>
</section>

<section title="416 Range Not Satisfiable" anchor="status.416">
Expand Down Expand Up @@ -12357,8 +12371,8 @@ Content-Encoding: gzip
(<xref target="OPTIONS"/>)
</t>
<t>
Allow <x:ref>Accept-Encoding</x:ref> in response messages, as introduced by
<xref target="RFC7694"/>.
Allow <x:ref>Accept</x:ref> and <x:ref>Accept-Encoding</x:ref> in response
messages; the latter was introduced by <xref target="RFC7694"/>.
(<xref target="request.conneg"/>)
</t>
</section>
Expand Down Expand Up @@ -12588,6 +12602,7 @@ Content-Encoding: gzip

<section title="Since draft-ietf-httpbis-semantics-08" anchor="changes.since.08">
<ul x:when-empty="None yet.">
<li>In <xref target="field.accept"/> and <xref target="status.415"/>, allow "Accept" as resonse field (<eref target="https://github.com/httpwg/http-core/issues/48"/>)</li>
<li>In <xref target="field.name.registry"/>, add optional "Comments" entry (<eref target="https://github.com/httpwg/http-core/issues/273"/>)</li>
<li>In <xref target="field.values"/>, instruct recipients how to deal with control characters in field values (<eref target="https://github.com/httpwg/http-core/issues/377"/>)</li>
<li>In <xref target="field.values"/>, update note about field ABNF (<eref target="https://github.com/httpwg/http-core/issues/380"/>)</li>
Expand Down

0 comments on commit 9837f3c

Please sign in to comment.