hyperium / headers

Typed HTTP Headers from hyper
https://hyper.rs
MIT License
162 stars 84 forks source link

EntityTag type is private #49

Closed jdm closed 4 years ago

jdm commented 4 years ago

For implementations like Servo that are implementing an HTTP cache, it would be nice to reuse the ETag machinery that already exists in this repository. Right now it's impossible to do anything with the typed ETag header and we need to reimplement the weak/strong comparisons.

seanmonstar commented 4 years ago

Yea, I'd be happy to add to the API! Is there need for the internal EntityTag, or can we just make the related headers accept an &Etag?

jdm commented 4 years ago

I don't think there's any particular need for the internal type.

jakelee8 commented 1 year ago

EntityTag is still private for v0.3.8: https://github.com/hyperium/headers/blob/master/src/util/entity.rs