Question: Pass in ClientWithMiddleware
to RegistryClient
and Builder
#3400
Labels
rustlib
Related to our Rust library API
For use in pixi, it would be great if we could use our own middleware for the Reqwest Client, instead of having to rely on the middleware that uv provides :)
Would you guys be open for directly accepting a
ClientWithMiddleware
in theRegistryClient
(I could make a PR for this)? I think this addition maybe does not make a lot of sense from a uv-as-a-binary perspective, as you most likely want to control your own middleware. But I believe it does make sense from a library perspective, as library users can add their own authentication middleware and whatnot. There is an open question in the design if it should be layered on top of your middleware or replace it, again from a library perspective I think replacing it make sense.How would you feel about this?
The text was updated successfully, but these errors were encountered: