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
Copy file name to clipboardExpand all lines: draft-kleidl-digest-fields-problem-types.md
+52-7Lines changed: 52 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,25 +81,70 @@ The term "request", "response", "intermediary", "sender", and "server" are from
81
81
82
82
## Unsupported Hashing Algorithm
83
83
84
-
This section defines the "https://iana.org/assignments/http-problem-types#unsupported-hashing-algorithm" problem type. A server MAY use this problem type when responding to a request, whose integrity or integrity preference fields reference a hashing algorithm that the server can not or does not want to support for this request, and if the server wants to indicate this problem to the sender.
84
+
This section defines the "https://iana.org/assignments/http-problem-types#unsupported-hashing-algorithm" problem type.
85
+
A server MAY use this problem type if it wants to communicate to the client that
86
+
one of the hashing algorithms referenced in the integrity or integrity preference fields present in the request
87
+
is not supported.
85
88
86
-
For this problem type, the `unsupported-algorithm` is defined as the only extension member. It SHOULD be populated in a response using this problem type, with its value being the algorithm key of the unsupported algorithm from the request. The response SHOULD include the corresponding integrity preference field to indicate the server's algorithm support and preference.
89
+
For this problem type, `unsupported-algorithm` is defined as the only extension member.
90
+
It SHOULD be populated in a response using this problem type, with its value being the algorithm key of the unsupported algorithm from the request.
91
+
The response can include the corresponding integrity preference field to indicate the server's algorithm support and preference.
87
92
88
-
The following example shows a response for a request with an integrity field utilizing an unsupported hashing algorithm `foo`. The response also includes a list of supported algorithms.
{: title="Response Advertising the Supported Algorithms"}
119
+
120
+
121
+
This problem type is a hint to the client about algorithm support, which the client could use to retry the request with a different, supported, algorithm.
122
+
123
+
Note that a request may contain more than one integrity field.
124
+
This problem type can also be used when a request contains an integrity preference field, e.g.
{: title="Response Advertising the Supported Algorithms"}
145
+
146
+
101
147
102
-
This problem type is a hint to the client about algorithm support, which the client could use to retry the request with a different algorithm supported by the server.
0 commit comments