headers icon indicating copy to clipboard operation
headers copied to clipboard

Support Accept and Accept-Encoding

Open sfackler opened this issue 6 years ago • 5 comments

sfackler avatar Oct 25 '19 14:10 sfackler

Is there any reason for this not moving forward?

DusterTheFirst avatar Jan 13 '23 21:01 DusterTheFirst

At a guess, it's because the Accept specification is complicated, and it's not a super high priority for Hyperium team members right now.

I'm working on an implementation right now, but no idea what the response would be to a PR upstreaming it.

coriolinus avatar Aug 16 '23 15:08 coriolinus

https://github.com/coriolinus/accept-header

coriolinus avatar Aug 17 '23 12:08 coriolinus

After surveying the crate ecosystem, I found that third party Header implementations either:

  1. Depended on the "rotting" mime crate or
  2. Deviate from the spec.

And in some cases both.

Also the linked crate above is not available via crates.io.

So I published headers-accept which addresses these issues: it uses the mediatype crate instead of mime and adheres to spec without e.g. sorting when not called for by the spec. It also incorporates the spec-compliant parsing technique used by mediatype.

maxcountryman avatar Apr 26 '24 12:04 maxcountryman