-
Notifications
You must be signed in to change notification settings - Fork 42
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
Guidelines for header field names #47
Comments
|
Is it worth mentioning |
|
I think so, but probably separately, since the ones above don't trigger any automatic handling, whereas |
|
I don't think it is true that they don't trigger automatic handling -- that happens for Accept-* and Content-*, for example. I also don't think we should encourage application-specific prefixes unless we can also accurately define what application-specific means and avoid repeating the mistake of x-prefixes. In general, it is better to encourage broad standardization and ignore the ones that failed, rather than encourage prefixes and then have to make a standard out of them after deployment. I do like the tweak to encourage shorter names. |
How so?
"limited-use, such as a header confined to a single application or use case"? |
|
More generally, if I come along and define something new in an existing family -- let's say Even At the HTTP layer, we don't care what format a header name takes; it's merely an opaque key in a dictionary. However, as a best practice, aligning your naming with similar headers aids developer comprehension and debugging. |
yes, that's much better. |
Is it useful to give some guidance about the use of prefixes like:
etc.? In particular, we could say that you can't depend on the semantics of a prefix, but it's a good idea to align your use with existing prefixes.
The text was updated successfully, but these errors were encountered: