- Notifications
You must be signed in to change notification settings - Fork43
Rough in discussion of extensibility#384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
b79308fa600f49a719c7420d8117c6409c3048379a3cf955ce5ecc19d35f3e005d21f7f5d87309894345813f456File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1067,6 +1067,56 @@ Content-Type: text/plain | ||
| <xref target="idempotent.methods"/>. | ||
| </t> | ||
| </section> | ||
| </section> | ||
| <section title="Extending and Versioning HTTP" anchor="extending.versioning"> | ||
| <t> | ||
| While HTTP's core semantics don't change between protocol versions, the | ||
| expression of them "on the wire" can change, and so the | ||
| HTTP version number changes when incompatible changes are made to the wire | ||
| format. Additionally, HTTP allows incremental, backwards-compatible | ||
| changes to be made to the protocol without changing its version through | ||
| the use of defined extension points. | ||
| </t> | ||
| <section title="Extending HTTP" anchor="extending"> | ||
| <t> | ||
| HTTP defines a number of generic extension points that can be used to | ||
| introduce capabilities to the protocol without introducing a new version, | ||
| including methods (<xref target="method.extensibility"/>), status codes | ||
| (<xref target="status.code.extensibility"/>), header and trailer fields | ||
| (<xref target="considerations.for.new.header.fields"/>), and further | ||
| extensibility points within defined fields (such as Cache-Control in <xref | ||
| target="cache.control.extensions"/>). Because the semantics of HTTP are | ||
| not versioned, these extension points are persistent; the version of the | ||
| protocol in use does not affect their semantics. | ||
| </t> | ||
| <t> | ||
| Version-independent extensions are discouraged from depending on or | ||
| interacting with the specific version of the protocol in use. When this is | ||
| unavoidable, careful consideration needs to be given to how the extension | ||
| can interoperate across versions. | ||
| </t> | ||
| <t> | ||
| Additionally, specific versions of HTTP might have their own extensibility | ||
| points, such as transfer-codings in HTTP/1.1 (<xref | ||
| target="field.transfer-encoding"/>) and HTTP/2 (<xref target="RFC7540"/>) | ||
| SETTINGS or frame types. These extension points are specific to the | ||
| version of the protocol they occur within. | ||
| </t> | ||
| <t> | ||
| Version-specific extensions cannot override or modify the semantics of | ||
| a version-independent mechanism or extension point (like a method or | ||
| header field) without explicitly being allowed by that protocol element. For | ||
| example, the CONNECT method (<xref target="CONNECT"/>) allows this. | ||
| </t> | ||
| <t> | ||
| These guidelines assure that the protocol operates correctly and | ||
| predictably, even when parts of the path implement different versions of | ||
| HTTP. | ||
| </t> | ||
| </section> | ||
| <section title="Protocol Versioning" anchor="protocol.version"> | ||
| <t> | ||
| @@ -2146,7 +2196,6 @@ Content-Type: text/plain | ||
| </tbody> | ||
| </table> | ||
| <!--(END)--> | ||
| <?ENDINC build/draft-ietf-httpbis-semantics-latest.iana-headers ?> | ||
| </section> | ||
| </section> | ||
| @@ -4553,7 +4602,6 @@ Content-Range: exampleunit 11.2-14.3/25 | ||
| </tbody> | ||
| </table> | ||
| <!--(END)--> | ||
| <?ENDINC build/draft-ietf-httpbis-semantics-latest.iana-methods ?> | ||
| <section title="Safe Methods" anchor="safe.methods"> | ||
| @@ -5038,6 +5086,11 @@ Content-Range: exampleunit 11.2-14.3/25 | ||
| through one or more proxies, which can then be secured using TLS | ||
| (Transport Layer Security, <xref target="RFC8446"/>). | ||
| </t> | ||
| <t> | ||
| Because CONNECT changes the request/response nature of an HTTP connection, | ||
| specific HTTP versions might have different ways of mapping its semantics | ||
| into the protocol's wire format. | ||
| </t> | ||
Comment on lines +5089 to +5093 Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think you missed my second comment that this paragraph doesn't say anything useful. AIUI, CONNECT was recently extended to allow an origin server to process it, which wasn't about the wire format. I would prefer that we update the first paragraph to be less specific to 1.1 and then reference the CONNECT extension as an example of an allowed semantic extension because the method had no applicability for an origin server before. I am also fine with merging this now and fixing CONNECT later. Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. RFC 7231 already permits origin servers to process CONNECT.
But yes, that extension stretches the bounds of this description. | ||
| <t> | ||
| CONNECT is intended only for use in requests to a proxy. | ||
| An origin server that receives a CONNECT request for itself &MAY; | ||
| @@ -7587,7 +7640,6 @@ Expect: 100-continue | ||
| </tbody> | ||
| </table> | ||
| <!--(END)--> | ||
| <?ENDINC build/draft-ietf-httpbis-semantics-latest.iana-status-codes ?> | ||
| <t> | ||
| Note that this list is not exhaustive — it does not include | ||
| @@ -10986,6 +11038,7 @@ Content-Encoding: gzip | ||
| <x:source href="draft-ietf-httpbis-cache-latest.xml" basename="draft-ietf-httpbis-cache-latest"> | ||
| <x:has anchor="constructing.responses.from.caches"/> | ||
| <x:has anchor="cache-response-directive.private"/> | ||
| <x:has anchor="cache.control.extensions"/> | ||
| <x:has anchor="caching.authenticated.responses"/> | ||
| <x:has anchor="caching.negotiated.responses"/> | ||
| <x:has anchor="caching.overview"/> | ||
| @@ -11675,6 +11728,23 @@ Content-Encoding: gzip | ||
| <seriesInfo name='RFC' value='4918' /> | ||
| </reference> | ||
| <reference anchor="RFC7540"> | ||
| <front> | ||
| <title>Hypertext Transfer Protocol Version 2 (HTTP/2)</title> | ||
| <author initials="M." surname="Belshe" fullname="M. Belshe"> | ||
| <organization/> | ||
| </author> | ||
| <author initials="R." surname="Peon" fullname="R. Peon"> | ||
| <organization/> | ||
| </author> | ||
| <author initials="M." surname="Thomson" fullname="M. Thomson" role="editor"> | ||
| <organization/> | ||
| </author> | ||
| <date year="2015" month="May"/> | ||
| </front> | ||
| <seriesInfo name="RFC" value="7540"/> | ||
| </reference> | ||
| <reference anchor="RFC8446"> | ||
| <front> | ||
| <title>The Transport Layer Security (TLS) Protocol Version 1.3</title> | ||
| @@ -12605,7 +12675,8 @@ Content-Encoding: gzip | ||
| <li>In <xref target="field.accept"/> and <xref target="status.415"/>, allow "Accept" as response 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> | ||
| <li>Add <xref target="extending.versioning"/> about Extending and Versioning HTTP (<eref target="https://github.com/httpwg/http-core/issues/384"/>)</li> | ||
| <li>In <xref target="overview.of.status.codes"/>, include status 308 in list of heuristically cacheable status codes (<eref target="https://github.com/httpwg/http-core/issues/385"/>)</li> | ||
| </ul> | ||
| </section> | ||