harp_apps.http_client.contrib.hishel.adapters

Inheritance diagram of harp_apps.http_client.contrib.hishel.adapters

class AsyncStorageAdapter[source]

Bases: object

__init__(storage)[source]
Parameters:

storage (IBlobStorage)

async retrieve(key)[source]
Parameters:

key (str)

Return type:

Tuple[Response, Request, Metadata] | None

async store(key, /, *, response, request, metadata)[source]
Parameters:
  • response (Response)

  • request (Request)

  • metadata (Metadata)

Return type:

Blob

async update_metadata_or_save(key, /, *, response, request, metadata)[source]
Parameters:
  • key (str)

  • response (Response)

  • request (Request)

  • metadata (Metadata)

Return type:

Blob

class SerializedRequest[source]

Bases: TypedDict

extensions: dict[str, str]
headers: str
method: str
url: str
varying: dict[str, str]
class SerializedResponse[source]

Bases: TypedDict

body: str
extensions: dict[str, str]
headers: str
status: int
varying: dict[str, str]