SealSkin

EncryptedRoute

Route class that encrypts JSON responses with the E2EE session key.

Non-GET requests carrying an X-Idempotency-Key header are executed at most once per crypto session: a retried request (for example after the client's network blipped while a container was being created) receives the stored result instead of running the handler again. While the first attempt is still running, the retry waits for it.

A request of the plain lane (see is_plain) is answered as it is, and its idempotency key counts per credential. A request naming a crypto session this server does not hold is refused before the handler runs.

Functions

funcget_route_handler() -> Callable

Wrap the original handler so JSON responses are encrypted.

Returns

collections.abc.Callable

On this page