http-rs / surf

Fast and friendly HTTP client framework for async Rust
https://docs.rs/surf
Apache License 2.0
1.46k stars 119 forks source link

No way to iterate over response headers #166

Closed jbr closed 4 years ago

jbr commented 4 years ago

There's currently no way to iterate over surf headers. I'm not sure how often this is used in practice, but example use cases might be:

Since none of these are common needs, this also would be addressed by making surf::Response Into<http_types::Response> (and/or Deref<Target=http_types::Response>, but the case for that is less compelling)

Fishrock123 commented 4 years ago

Fixed in https://github.com/http-rs/surf/pull/191