Skip to content

Conversation

@jplatte
Copy link
Contributor

@jplatte jplatte commented Jan 7, 2026

This allows looking up an entry in a map with HeaderValue key by a &[u8], and thus indirectly by a &str (by calling .as_bytes() on the lookup key first).

It's consistent with the Hash impl in that both delegate to the Bytes implementations of the same traits.

Real-world use case: tokio-rs/axum#3620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant