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
Yes it is httpx. I think you can implement your own request class with anything what you want using RequestBase. And then pass your request instance to the constructor of the client. Like request=myReq
def __init__(self, proxy_url: str = None) -> None:
super().__init__()
# Configure the AsyncClient with or without a proxy
self._client = httpx.AsyncClient(
follow_redirects=True,
proxies={"all://": proxy_url} if proxy_url else None
)
Under the hood it seems is running httpx (i might be wrong?)
How can we set a proxy on client creation?
The text was updated successfully, but these errors were encountered: