Storage¶
Storage implementations are in charge of persisting transactions and messages into a backend (database, memory, …) using eventual dependencies.
Each storages should implement the Storage
protocol.
Model¶

a
Transaction
represents a transaction that went through the proxy. A set of request-response forms a transaction in the case of an HTTP transaction (although the response may not be present in case of an in progress transaction or a timed out transaction).a
Message
represents an atomic message that went through the proxy. An http request or response is a message.a
Blob
represents a binary content, for example the headers or the body of an http request or response.
Protocol¶
- class IStorage[source]¶
- __init__(*args, **kwargs)¶
- async finalize()[source]¶
Coroutine function to finalize the instance. Should release resources, close files etc… The caller should make sure to call finalize on all cases where the instance is not needed anymore to get a clean shutdown.