Skip to content

Question: Pass in ClientWithMiddleware to RegistryClient and Builder #3400

Open
@tdejager

Description

@tdejager

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 the RegistryClient (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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    rustlibRelated to our Rust library API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions