Open volodymyrZotov opened 5 months ago
Currently, there is no possibility of configuring httpx.Client when initializing the client using new_client function. The purpose of this issue to add the configuration ability to the new_client function so it would look like this:
httpx.Client
new_client
def new_client(url: str, token: str, is_async: bool = False, config: httpx.BaseClient) -> Union[AsyncClient, Client]:
The config parameter should be of type httpx.BaseClient so we can pass any options that httpx.Client and httpx.AsyncClient have.
config
httpx.BaseClient
httpx.AsyncClient
Currently, there is no possibility of configuring
httpx.Client
when initializing the client usingnew_client
function. The purpose of this issue to add the configuration ability to thenew_client
function so it would look like this:The
config
parameter should be of typehttpx.BaseClient
so we can pass any options thathttpx.Client
andhttpx.AsyncClient
have.