I've learned that:
import requests response = requests.get(url, timeout=None)
doesn't have the same meaning as:
import httpx response = httpx.get(url, timeout=None)
If you want the same behavior with httpx than the requests code, you need to do the following:
httpx
requests
import httpx timeout = httpx.Timeout(connect_timeout=None, read_timeout=None, write_timeout=None) response = httpx.get(url, timeout=timeout)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've learned that:
doesn't have the same meaning as:
If you want the same behavior with
httpx
than therequests
code, you need to do the following: