intercepting

fun intercepting(resolver: RequestIdResolver = fromPath()): HttpHandler

The interceptor to be used in the application to store requests in the postbox. It relies on the requestIdResolver to define the identity of the request and allow for idempotency.

It'll return a 202 with a Link header to check the status of the request. If the request has already been processed, it'll return the response obtained as part of processing it.