http-rs / surf

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

feat: add header-related methods to Response #182

Closed mainrs closed 4 years ago

mainrs commented 4 years ago

This PR adds various methods for working with the received headers from a response object. An iterator over the names of each header field has been added in PR #171.

Closes #149.

Fishrock123 commented 4 years ago

This functionality has been merged via https://github.com/http-rs/surf/pull/191

mainrs commented 4 years ago

Thanks for letting me know @Fishrock123. Any particular reason why you decided to create a new PR instead of merging the two that were already present? :smile:

Fishrock123 commented 4 years ago

Sorry, there was a lot to get in sync with Tide's api, and it was easier to do the changes combined.

mainrs commented 4 years ago

No need to apologize! Thanks for letting me know :) Would be awesome if someone could take a look at https://github.com/http-rs/surf/pull/190, it's super short :)

Thanks for creating PR #191 though :)