hyperium / h2

HTTP 2.0 client & server implementation for Rust.
MIT License
1.34k stars 269 forks source link

No way to determine if the server reset the stream #617

Closed bruceg closed 2 years ago

bruceg commented 2 years ago

When a server (GCP Pub/Sub in my case) sends a reset frame, h2 reports it as a status with Kind::Reset. However, there is no direct way of testing if the status was a reset, analogous to is_go_away or is_io.

If an is_reset function would be an acceptable solution, I can provide a PR for this.

seanmonstar commented 2 years ago

Yea that's probably just an oversight, I can't think of any reason it wouldn't exist.