You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the documentation provides an example on for GET request. Can an example for POST request that demonstrates sending a payload and setting headers be add to the documentation?
Would it be something like this
from requests_threads import AsyncSession
session = AsyncSession(n=100)
async def _main():
url = u"https://api.github.com/repos/psf/requests/issues/482/comments"
body = json.dumps({u"body": u"Sounds great! I'll get right on it!"})
response = await session.post(url=url, data=body)
Thanks
The text was updated successfully, but these errors were encountered:
Currently the documentation provides an example on for GET request. Can an example for POST request that demonstrates sending a payload and setting headers be add to the documentation?
Would it be something like this
Thanks
The text was updated successfully, but these errors were encountered: