Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit fab5e10

Browse files
committed
addressing #20
1 parent 57684a5 commit fab5e10

File tree

1 file changed

+6
-30
lines changed

1 file changed

+6
-30
lines changed

draft-ietf-httpapi-deprecation-header.md

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -125,25 +125,6 @@ The following example uses the same link header, but also announces a deprecatio
125125
Given that the deprecation date is in the past, the linked information resource may have been updated to include information about the deprecation, allowing consumers to discover information about the deprecation and how to best manage it.
126126

127127

128-
# Recommend Replacement
129-
130-
The `Link` header field {{LINK}} can be used in addition to the `Deprecation` header field to inform the client about available alternatives to the deprecated resource. The following relation types are RECOMMENDED to use for this purpose:
131-
132-
* `successor-version`: Refers to a resource providing the successor version. {{?RFC5829}}
133-
* `latest-version`: Refers to a resource providing the latest (e.g., current) version. {{?RFC5829}}
134-
* `alternate`: Designates a substitute. {{?W3C.REC-html401-19991224}}
135-
136-
The following example provides a link to the successor version of the requested resource that is deprecated.
137-
138-
Deprecation: Sun, 11 Nov 2018 23:59:59 GMT
139-
Link: <https://api.example.com/v2/customers>; rel="successor-version"
140-
141-
This example provides link to an alternate resource to the requested resource that is deprecated.
142-
143-
Deprecation: Sun, 11 Nov 2018 23:59:59 GMT
144-
Link: <https://api.example.com/v1/clients>; rel="alternate"
145-
146-
147128
# Sunset
148129

149130
In addition to the deprecation related information, if the resource provider wants to convey to the client application that the deprecated resource is expected to become unresponsive at a specific point in time, the Sunset HTTP header field {{?RFC8594}} can be used in addition to the `Deprecation` header.
@@ -287,27 +268,22 @@ The Deprecation header field SHOULD be treated as a hint, meaning that the resou
287268

288269
In cases where the Deprecation header field value is a date in the future, it can lead to information that otherwise might not be available. Therefore, applications consuming the resource SHOULD verify the resource documentation and if possible, consult the resource developer to discuss potential impact due to deprecation and plan for possible transition to recommended resource.
289270

290-
In cases where a `Link` header is used to provide more documentation and/or recommendation for replacement, one should assume that the content of the `Link` header field may not be secure, private or integrity-guaranteed, and due caution should be exercised when using it. Applications consuming the resource SHOULD check the referred resource documentation to verify authenticity and accuracy.
291-
292-
The suggested `Link` header fields make extensive use of IRIs and URIs. See {{!RFC3987}} for security considerations relating to IRIs. See {{!RFC3986}} for security considerations relating to URIs. See {{HTTP}} for security considerations relating to HTTP headers.
293-
294-
Applications that take advantage of typed links should consider the attack vectors opened by automatically following, trusting, or otherwise using links gathered from HTTP headers. In particular, Link headers that use the `successor-version`, `latest-version` or `alternate` relation types should be treated with due caution. See {{?RFC5829}} for security considerations relating to these link relation types.
295-
271+
In cases where a `Link` header is used to provide documentation, one should assume that the content of the `Link` header field may not be secure, private or integrity-guaranteed, and due caution should be exercised when using it. Applications consuming the resource SHOULD check the referred resource documentation to verify authenticity and accuracy.
296272

297273

298274
# Examples
299275

300-
The first example shows a deprecation header with date information and a link to the successor version:
276+
The following examples do not show complete HTTP interactions. They only show those HTTP header fields in a response that are relevant for resource deprecation.
277+
278+
The first example shows a deprecation header with date information:
301279

302280
Deprecation: Sun, 11 Nov 2018 23:59:59 GMT
303-
Link: <https://api.example.com/v2/customers>; rel="successor-version"
304281

305-
The second example shows a deprecation header field with links for the successor version and for the API's deprecation policy. In addition, it shows the sunset date for the deprecated resource:
282+
The second example shows a deprecation header field with a link for the resource's deprecation policy. In addition, it shows the sunset date for the deprecated resource:
306283

307284
Deprecation: Sun, 11 Nov 2018 23:59:59 GMT
308285
Sunset: Wed, 11 Nov 2020 23:59:59 GMT
309-
Link: <https://api.example.com/v2/customers>; rel="successor-version",
310-
<https://developer.example.com/deprecation>; rel="deprecation"
286+
Link: <https://developer.example.com/deprecation>; rel="deprecation"
311287

312288

313289

0 commit comments

Comments
 (0)