Open sadokmtir opened 1 year ago
The typed headers are meant to be used with HeaderMapExt
, which allow a typed_insert()
. CacheControl
in particular doesn't have a cheap way to provide an as_str()
representation, since it's internally a bunch of a flags.
I am using this crate for dealing with headers for example
Cache-Control
and I find it very helpful to create headers in general with this lib. But unfortunately most of the headers Structs they do not provide a string representation so we could include the headers in the response.Example:
Something like that would be very useful not only for
Cache-Control
but for most headers