hyperium / http-body

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

feat(http): implement http_body::Body trait for Vec<u8> #130

Open akneni opened 1 week ago

akneni commented 1 week ago

Implement the http_body::Body trait for the Vec<u8> type to improve ergonomics when working with byte vectors as HTTP bodies. This change allows Vec<u8> to be used directly as a body type in hyper, reducing the need for additional wrappers.

akneni commented 3 days ago

@seanmonstar Any thoughts on this PR?