You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: draft-ietf-httpapi-deprecation-header.md
+6-30Lines changed: 6 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,25 +125,6 @@ The following example uses the same link header, but also announces a deprecatio
125
125
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.
126
126
127
127
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.
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
287
268
288
269
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.
289
270
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.
296
272
297
273
298
274
# Examples
299
275
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:
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:
0 commit comments