-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add aiohttp support #16
base: main
Are you sure you want to change the base?
Conversation
Thank you for this! I'll have a look soon. |
Hey @aarcex3 - thank you again for this and apologies for the delayed response.
That sounds like a good idea. I'm also thinking whether it would be best for the
There are some tests for the |
I think we can try that |
I dunno what it should look like though. |
All good. I can have a look at that separately. It doesn't need to affect this PR. |
Hey @aarcex3 - let me know if there's anything I can help with on this one. Thank you! |
Hey, I thought you were gonna implement this yourself. I can try if you want though. |
I mean this.
|
If you want and can, go for it. 👍 |
Hey, I wont be able to work on this.
|
Summary
Added support for
aiohttp
as api clientQuestion
Since the
aiohttp.ClientResponse
has different names for common attribute (status for status_code) and also they are async attributes (e.g response.json), maybe implement a generic Response and fill it up depending on the type of client?E.g here it will fail or give an error since aiohttp doesn't have a status_code attr, idem here for json.
Related Issue
#4
PD
I didn't implement tests since there aren't tests for the other clients