PostboxHandlers

class PostboxHandlers(transactor: PostboxTransactor, responseGenerator: PendingResponseGenerator = Empty)

Configures HTTP handlers for a transactional postbox.

Constructors

Link copied to clipboard
constructor(transactor: PostboxTransactor, responseGenerator: PendingResponseGenerator = Empty)

Functions

Link copied to clipboard
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.

Link copied to clipboard

Allows to check the status of a request.