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

dyn HttpClient #193

Closed Fishrock123 closed 4 years ago

Fishrock123 commented 4 years ago

This is a rebase of @islandusurper and @icewind1991's commits as linked in https://github.com/http-rs/surf/issues/69, based on an http-client branch which actually fixes the Sized and Error bounds issues on the HttpClient trait.

This makes Client no longer a generic, simplifying things as noted in https://github.com/http-rs/surf/issues/192 and also allowing things such as https://github.com/http-rs/surf/issues/150 (static client), while also fixing other reported issues.

Todo: