harp_apps.proxy.adapters

Inheritance diagram of harp_apps.proxy.adapters

class HttpClientProxyAdapter[source]

Bases: object

__init__(http_client, *, extensions=None)[source]
Parameters:
  • http_client (AsyncClient)

  • extensions (Dict[str, Any] | None)

async send(request, url)[source]

Send the HTTP request using the provided URL.

Parameters:
  • request (HttpRequest) – The HttpRequest object to be sent.

  • url (str) – The URL to which the request is sent.

Returns:

The HTTP response received.

Return type:

Response

user_agent: str | None = None

User agent to use when proxying requests (will default to harp/<version>).