@pwngh/economy-lab
    Preparing search index...

    Function httpDispatcher

    • Builds the Dispatcher that POSTs one economy event to a remote endpoint over HTTP, the body encoded by the shared encodeEvent (event-wire.ts).

      A network error or a non-2xx response throws a retryable PROVIDER.FAILURE, so the relay redelivers later with backoff. Because a retry can duplicate an event, the event id goes in an Idempotency-Key header for the receiver to dedupe.

      Parameters

      • config: HttpDispatcherConfig

      Returns Dispatcher

      Messaging for the outbox-to-relay flow, the dispatcher port, and at-least-once delivery.