Karta.Kantoor.Response (Karta v1.0.0)

The retention an endpoint asks for in its answer to a push (contract 3a). When the Kantoor flag is on and the endpoint is marked (Karta.Kantoor.mark_endpoint/2), a 2xx answer to a push may carry

{"retention": "keep"}     or     {"retention": 30}

and Karta stores that policy on the delivery (Karta.Kantoor.Retention), replacing the route's default. An answer without a retention (or with null, no JSON, a body that was cut off) changes nothing, and neither does any answer of another endpoint or with the flag off: the delivery's outcome and the retries of non-2xx answers are exactly as ever. A policy that is not "keep" or a number of days is ignored and the delivery's details say so. A keep that the server's cap on kept storage does not allow (Karta.Kantoor.KeptStorage) is not applied, and the details say so too.

Summary

Functions

The outcome of the push, with the retention of the answer applied (see the module doc).

Functions

record(endpoint, delivery, arg3, outcome)

The outcome of the push, with the retention of the answer applied (see the module doc).