pyrit.common.get_httpx_client

pyrit.common.get_httpx_client#

get_httpx_client(use_async: Literal[True], debug: bool = False, **httpx_client_kwargs: Any | None) AsyncClient[source]#
get_httpx_client(use_async: Literal[False] = False, debug: bool = False, **httpx_client_kwargs: Any | None) Client

Get the httpx client for making requests.

Returns:

The configured httpx client.

Return type:

httpx.Client or httpx.AsyncClient