hyperium / http

Rust HTTP types
Apache License 2.0
1.12k stars 283 forks source link

Any way to convert `HeaderValue` to `Bytes` without copying? #661

Open stackinspector opened 6 months ago

stackinspector commented 6 months ago

We have HeaderValue::from_maybe_shared to create HeaderValue from Bytes without copying, so what about the reverse?

tesaguri commented 6 months ago

There's no way to do that yet. See #459.