hyperium / http-body

Asynchronous HTTP body trait
MIT License
125 stars 49 forks source link

Body is implemented for String but not Vec<u8> #131

Closed lolbinarycat closed 3 days ago

lolbinarycat commented 6 days ago

these types are equivalent except that String must be utf-8. http response bodies do not have to be utf-8, so it seems weird to limit this to only String.

seanmonstar commented 3 days ago

Thanks for the report! This looks like a duplicate over at https://github.com/hyperium/hyper/issues/3746. :)