Open quasicomputational opened 2 years ago
It should be easy to make a constant in your own code using HeaderName::from_static("early-data")
.
Yeah, it's not like it's a blocker or anything. But this is a standard header and it is still a bit of ugliness to work around - especially since, on this side of the abstraction barrier, I can't declare it const
, and there's a hazard in misspelling the name and only finding out at runtime instead of having it detected at compile time.
RFC 8470 defines an
Early-Data
header, but thehttp::header
module doesn't have a correspondingEARLY_DATA
constant that makes it convenient to use. Could such a thing be added, please?