We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bytes
HeaderNames are well known within a program, if we use bytes to represent header names we can make use of from_static to allocate static header names.
from_static
Introduce from_static on HeaderName and make the internal representation for custom header names Bytes.
let header_name = HeaderName::from_static("X-Custom-Foo");
Internal representation would be
struct Custom { inner: Bytes }
Everyone
No response
The text was updated successfully, but these errors were encountered:
caspervonb
Successfully merging a pull request may close this issue.
Use case
HeaderNames are well known within a program, if we use bytes to represent header names we can make use of
from_static
to allocate static header names.Proposed change
Introduce
from_static
on HeaderName and make the internal representation for custom header namesBytes
.Internal representation would be
Who benefits from the change(s)?
Everyone
Alternative Approaches
No response
The text was updated successfully, but these errors were encountered: