dataclass-rest icon indicating copy to clipboard operation
dataclass-rest copied to clipboard

Provide `httpx` client

Open sobolevn opened this issue 1 year ago • 3 comments

I am not actually using this library, but while I was reading the readme example - I wondered why it is not supported.

httpx has both modes: sync and async, which really implies that there should be two integrations / classes for it.

sobolevn avatar Jan 12 '25 13:01 sobolevn

In descanso, API was simplified. See existing transports as an example: https://github.com/reagento/descanso/blob/develop/src/descanso/http/requests.py https://github.com/reagento/descanso/blob/develop/src/descanso/http/aiohttp.py

Tishka17 avatar Nov 17 '25 11:11 Tishka17

Hello, thank you for such a useful library. Since the release of "descanso", we have been implementing it at work, but we use "httpx" clients, so I sketched out two simple clients based on your implementation with "requests" and "aiohttp". Would it be beneficial to add "httpx" support? I can make a PR.

anmayithap avatar Nov 24 '25 14:11 anmayithap

@anmayithap yes, that would be great.

Tishka17 avatar Nov 24 '25 15:11 Tishka17