method IIngressBehavior.handle
IIngressBehavior.handle(
next: () => Promise<void>
): void | Promise<void>

Wraps the rest of the chain around one work item.

Parameters

The per-item work envelope

next: () => Promise<void>

Invokes the next behaviour, or the wrapped handler at the end of the chain

Return Type

void | Promise<void>

Nothing: ingress handlers are void-returning. Return without calling next to short-circuit.

Usage

import { type IIngressBehavior } from "common/src/index.ts";