Skip to content

Support async in OFREP provider #310

@dmontagu

Description

@dmontagu

Right now the OFREP provider uses requests, which means that it can only support sync APIs.

Would there be any willingness to move to using the httpx library for http requests rather than requests? It's API compatible so should be a straightforward port, and it would then become trivial to add support for async requests.

I've opened #311 to show concretely what I'm proposing, though I'll note that that PR just shows the update to the OFREP provider file; it still needs updates to dependencies to add httpx, new/updated tests, etc., just want to get more confirmation before going further.

(I opened the PR because I implemented the provider in my internal code and if nothing else wanted to share.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions