Client implementation using httpx#

blacksmith.service._async.adapters.httpx.safe_json(r: httpx.Response) Optional[Any]#
blacksmith.service._async.adapters.httpx.build_headers(req: blacksmith.domain.model.http.HTTPRequest) Mapping[str, str]#
class blacksmith.service._async.adapters.httpx.AsyncHttpxTransport(verify_certificate: bool = True, proxies: Optional[Union[URL, str, Proxy, Dict[Union[URL, str], Union[None, URL, str, Proxy]]]] = None)#

Transport implemented using httpx.

async __call__(req: blacksmith.domain.model.http.HTTPRequest, client_name: str, path: str, timeout: blacksmith.domain.model.http.HTTPTimeout) blacksmith.domain.model.http.HTTPResponse#

This is the next function of the middleware.

verify_certificate: bool#
proxies: Optional[Union[URL, str, Proxy, Dict[Union[URL, str], Union[None, URL, str, Proxy]]]]#