http-client icon indicating copy to clipboard operation
http-client copied to clipboard

feat: make HttpClient dyn-clonable

Open Fishrock123 opened this issue 4 years ago • 1 comments

Kinda reverts https://github.com/http-rs/http-client/pull/48

Related to https://github.com/http-rs/surf/issues/237

Desirable for Surf-level config.

Fishrock123 avatar Jul 05 '21 17:07 Fishrock123

Turns out this still doesn't really work for surf config because Arc::make_mut() is only able to use Clone's .clone() internally, and dyn Thing can't be cloned, because stack sizing or something along those lines.

Fishrock123 avatar Jul 05 '21 20:07 Fishrock123