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

Consider implementing From<mime::THINGS> for http::HeaderValue #164

Open
Ducky2048 opened this issue Nov 14, 2024 · 0 comments
Open

Consider implementing From<mime::THINGS> for http::HeaderValue #164

Ducky2048 opened this issue Nov 14, 2024 · 0 comments

Comments

@Ducky2048
Copy link

I believe that Memetypes should be valid header values. This makes code like this nice and easy

let mut m = HeaderMap::new();
m.insert(http::header::CONTENT_TYPE, mime::APPLICATION_JSON.into() /* not werks currently */);

I would be happy to try to contribute a merge request.

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