tokio-rs / bytes

Utilities for working with bytes
MIT License
1.91k stars 287 forks source link

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

Closed stackinspector closed 10 months ago

stackinspector commented 10 months ago

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

taiki-e commented 10 months ago

HeaderValue is not a type included in this crate, so you probably need to open an issue in the crate that defines that type (https://github.com/hyperium/http).