hyperium / http

Rust HTTP types
Apache License 2.0
1.14k stars 284 forks source link

Allow merging two `Extensions` maps #525

Closed jplatte closed 2 years ago

jplatte commented 2 years ago

Motivation: https://github.com/tokio-rs/axum/issues/770

Prior art: The anymap crates allows this through map1.extend(map2.into_raw()) (AFAICT, haven't tested)

jplatte commented 2 years ago

Seems like this isn't actually needed for that axum feature.

jplatte commented 2 years ago

We're back to wanting this in axum 😄

https://github.com/tokio-rs/axum/pull/950#issuecomment-1102807504

jplatte commented 2 years ago

I'll create a PR for this.