Internet-Draft | Retry-Scope header field | September 2020 |
Polli | Expires 12 March 2021 | [Page] |
This document defines the Retry-Scope header field for HTTP thus allowing a server to communicate the scope of the returned Retry-After header field.¶
RFC EDITOR: please remove this section before publication¶
Discussion of this draft takes place on the HTTP working group mailing list (ietf-http-wg@w3.org), which is archived at https://lists.w3.org/Archives/Public/ietf-http-wg/.¶
The source code and issues list for this draft can be found at https://github.com/ioggstream/draft-polli-Retry-Scope.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 12 March 2021.¶
Copyright (c) 2020 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
The Retry-After header defined in Section 7.1.3 of [SEMANTICS] allows a server to indicate how long the user agent ought to wait before making a follow-up request.¶
While Retry-After applies to the issued request, it may be useful for the server to communicate to the user agent that the conditions that lead to returning Retry-After are broader in scope than a single request.¶
This proposal allows a server to convey that scope in the Retry-Scope response header field, and ask the client to temporarily refrain from making other requests to the same resource, or even to all resources on the same server.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. These words may also appear in this document in lower case as plain English words, absent their normative meanings.¶
This document uses the Augmented BNF defined in [RFC5234] and updated by [RFC7405] along with the "#rule" extension defined in Section 7 of [MESSAGING] and the URI-reference rule defined in Section 2.7 of [MESSAGING].¶
The terms "intermediaries" and "target URI" are to be interpreted as described in [MESSAGING].¶
The following header is defined¶
The Retry-Scope response header field indicates that the conditions that lead to returning Retry-After are broader in scope than a single request.¶
Retry-Scope = URI-reference¶
Two examples of Retry-Scope:¶
Retry-Scope: /books Retry-Scope: https://api.example/¶
A user agent receiving the Retry-Scope header field in conjunction with a Retry-After header field ought to wait before making further request to the resource identified by the Retry-Scope field value.¶
This header MUST NOT be repeated; if a user agent receives multiple Retry-Scope header fields, then it SHOULD ignore them.¶
Intermediaries aware of the Retry-Scope semantics (eg. reverse proxies) MAY modify the Retry-Scope in order to help the user agent to correctly identify the scope and ensure that the field value matches the target URI, like they would have done for the Location header field defined in Section 7.1.2 of [SEMANTICS].¶
An intermediary, by chance or purpose, might alter the scope of the Retry-Scope thus causing the user agent to refrain contacting other server resource.¶
When the server originating the Retry-Scope is behind one or more intermediaries it is possible that the field value is not consistent with the target URI.¶
This section registers the Retry-Scope
header field in the "Permanent Message
Header Field Names" registry ([RFC3864]).¶
Header field name: Retry-Scope
¶
Applicable protocol: http¶
Status: standard¶
Author/Change controller: IETF¶
Specification document(s): Section 2.1 of this document¶
This specification was born from a thread created by Martin Thomson, and the subsequent discussion.¶
RFC EDITOR PLEASE DELETE THIS SECTION.¶