-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unnecessary use of 1#element for header field definitions #210
Comments
If you mean that we should change them to |
See #164. This change would reduce the complexity of the list rule. We'd just have to put the "minimally one instance" constraint into prose. |
I think Roy's point is that we don't need to limit to a minimum number of elements -- even in prose. |
Well, for at least some of these, we may have to say what it means if there is none. |
From Roy's list, I've ticked the ones that I think that's true for:
You could argue that Accept-* need them too, but I think the right think will happen regardless... |
I think that when an empty header field indicates an error instead of just an empty list, we should define it as 1#value. When a field might be generated, truncated, or whitespaced-out by multiple implementations in a chain of communication, allowing the field to be sent empty is a common simplification (or at least a common error case that only wastes a little bandwidth). This is particularly true if we expect extensions or intermediaries to drop or append some values, as is the case for all of those fields except If-Match. |
That sounds about right. Although we should specify that error handling in prose too, I think. |
AIUI we want to remove Questions:
|
|
That sounds like we want to remove |
When working on #164 I noticed that our existing use of 1#element (header fields requiring at least one list item) is kind of pointless. The following fields use it:
It is also used (incorrectly?) within Byte Ranges fields as
We should audit these because it makes more sense to handle empty fields as non-error conditions.
The text was updated successfully, but these errors were encountered: