You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HeaderValue may be well known within a program, if we use bytes to represent header field values we can make use of from_static to allocate static header values.
Proposed change
Introduce from_static on HeaderValue and make the internal representation Bytes.
let put = HeaderName::from_static("PUT");let delete = HeaderName::from_static("DELETE");
Who benefits from the change(s)?
Everyone sending static payloads in headers
Alternative Approaches
No response
The text was updated successfully, but these errors were encountered:
Use case
HeaderValue may be well known within a program, if we use bytes to represent header field values we can make use of
from_static
to allocate static header values.Proposed change
Introduce
from_static
onHeaderValue
and make the internal representationBytes
.Who benefits from the change(s)?
Everyone sending static payloads in headers
Alternative Approaches
No response
The text was updated successfully, but these errors were encountered: