Skip to content
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

empower headers users in defining their own headers #203

Open
GlenDC opened this issue Jan 19, 2025 · 0 comments
Open

empower headers users in defining their own headers #203

GlenDC opened this issue Jan 19, 2025 · 0 comments

Comments

@GlenDC
Copy link

GlenDC commented Jan 19, 2025

This crate comes with a lot of utilities which aren't available in public API space. This leads to people having to define their own utilities for very similar headers. In case this crate would be ok in adding a lot more (semi) std http headers that would be less of an issue, but AFAIK it is intended to keep this crate limited to the more popular ones and certainly not X- like headers, even though plenty of them are pretty standard.

With utilities I mean CSV parsing, HttpDate, etc...
I'm fine with this being behind an unstable feature or w/e, but right now you pretty much need to copy them out which is a lot harder to keep in sync then just having your code break with an update.

Similar, a lot headers that are supported here have also severe limitations in how they can be used, making it now always easy or even possible to use the typed headers due to these limitations. E.g. ContentType only has support for a couple of content-types to construct them with, just to give an example.

All in all this crate (headers) is fantastic, but I feel it is currently a lot more limited in how it can be used as well as externally extended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant