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.
@@ -62,7 +68,7 @@ In addition to the Deprecation header field, the resource provider can use other
62
68
63
69
{::boilerplate bcp14-tagged}
64
70
65
-
This specification uses the Augmented Backus-Naur Form (ABNF) notation of {{!RFC5234}} and includes, by reference, the IMF-fixdate rule as defined in {{Section 5.6.7 of HTTP}}.
71
+
This specification uses the Augmented Backus-Naur Form (ABNF) notation of {{!RFC5234}} and includes, by reference, the sf-date format as defined in [SFBIS].
66
72
67
73
The term "resource" is to be interpreted as defined in {{Section 3.1 of HTTP}}.
68
74
@@ -72,19 +78,20 @@ The `Deprecation` HTTP response header field allows a server to communicate to a
72
78
73
79
## Syntax
74
80
75
-
The `Deprecation` response header field describes the deprecation of the resource identified with the response it occurred within (see {{Section 6.4.2 of HTTP}}). It conveys the deprecation date, which may be in the future (the resource context will be deprecated at that date) or in the past (the resource context has been deprecated at that date).
81
+
The `Deprecation` response header field describes the deprecation of the resource identified with the response it occurred within (see {{Section 6.4.2 of HTTP}}). It conveys the deprecation date, which may be in the future (the resource context will be deprecated at that date) or in the past (the resource context has been deprecated at that date). `Deprecation` is an Item Structured Header {{!RFC8941}}. Refer to Section 3.3.7 of [SFBIS] for ABNF of `sf-date`:
76
82
77
83
~~~ abnf
78
-
Deprecation = IMF-fixdate
84
+
Deprecation = sf-date
79
85
~~~
80
86
87
+
81
88
Servers MUST NOT include more than one `Deprecation` header field in the same response.
82
89
83
-
The date is the date when the resource was or will be deprecated. It is in the form of an IMF-fixdate timestamp.
90
+
The date is the date when the resource was or will be deprecated. It is in the form of an Structured Field Date as defined in Section 3.3.7 of [SFBIS].
84
91
85
-
The following example shows that the resource context has been deprecated on Sunday, November 11, 2018 at 23:59:59 GMT:
92
+
The following example shows that the resource context has been deprecated on Friday, June 30, 2023 at 23:59:59 GMT:
86
93
87
-
Deprecation: Sun, 11 Nov 2018 23:59:59 GMT
94
+
Deprecation: @1688169599
88
95
89
96
The deprecation date can be in the future. This means that the resource will be deprecated at the indicated date in the future.
90
97
@@ -118,7 +125,7 @@ In this example the linked content provides additional information about depreca
118
125
119
126
The following example uses the same link header field, but also announces a deprecation date using a Deprecation header field:
@@ -131,10 +138,10 @@ In addition to the deprecation related information, if the resource provider wan
131
138
132
139
The timestamp given in the `Sunset` header field MUST NOT be earlier than the one given in the `Deprecation` header field.
133
140
134
-
The following example shows that the resource in context has been deprecated since Sunday, November 11, 2018 at 23:59:59 GMT and its sunset date is Wednesday, November 11, 2020 at 23:59:59 GMT.
141
+
The following example shows that the resource in context has been deprecated since Friday, June 30, 2023 at 23:59:59 GMT and its sunset date is Sunday, June 30, 2024 at 23:59:59 GMT. Please note that for historical reasons the Sunset HTTP header field uses a different data type for date.
135
142
136
-
Deprecation: Sun, 11 Nov 2018 23:59:59 GMT
137
-
Sunset: Wed, 11 Nov 2020 23:59:59 GMT
143
+
Deprecation: @1688169599
144
+
Sunset: Sun, 30 Jun 2024 23:59:59 GMT
138
145
139
146
# Resource Behavior
140
147
@@ -277,18 +284,23 @@ The following examples do not show complete HTTP interactions. They only show th
277
284
278
285
The first example shows a deprecation header field with date information:
279
286
280
-
Deprecation: Sun, 11 Nov 2018 23:59:59 GMT
287
+
Deprecation: @1688169599
281
288
282
289
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:
* Date format is changed from IMF-fixdate rule as defined in {{Section 5.6.7 of HTTP}} to Structured Field for Date as defined in Section 3.3.7 of [SFBIS].
0 commit comments