Difficult to name type of hyper Client using arti_hyper
I built a hyper Client basically following the example contained in arti_hyper. The resulting type ended up being: Client<ArtiHttpConnector<PreferredRuntime, TlsConnector>, Body>
, which needs to be named if you want to pass the client to another function, etc.
This type is pretty long, and on top of that, the PreferredRuntime
type comes from tor-rtcompat
, so an explicit dependency needs to be added on that crate even though it's not needed otherwise.
Maybe arti_hyper
could export a type alias to make this more straightforward? Even something like: type HyperClient<R = PreferredRuntime, T = TlsConnector, B = Body> = Client<ArtiHttpConnector<R, T>, B>;
Edited by legoktm