hyperium / hyper

An HTTP library for Rust
https://hyper.rs
MIT License
14.42k stars 1.59k forks source link

Expose ReadBufCursor::remaining and ReadBufCursor::put_slice #3700

Closed nox closed 2 months ago

nox commented 2 months ago

There is currently no way to write to ReadBufCursor without unsafe code, even though writing a slice to it like one would do to a Buf shouldn't require unsafe code.

nox commented 2 months ago

There is also #3515 that is similar, but more involved.

nox commented 2 months ago

@seanmonstar I addressed both comments.