Setu-TS
    Preparing search index...

    Interface IIngressBehavior

    Cross-cutting behaviour around one unit of non-HTTP ingress work.

    Sibling of IPipelineBehavior, not a widening of it: all four ingress handlers are void-returning, so next resolves to void and a behaviour short-circuits by returning without calling next() — which skips the wrapped handler. The behaviors arm each ingress plugin declares takes this interface, directly or through a RegistryFactory resolved at onInit.

    0.3.0

    interface IIngressBehavior {
        handle(
            ctx: IngressContext,
            next: () => Promise<void>,
        ): void | Promise<void>;
    }
    Index
    • Wraps the rest of the chain around one work item.

      Parameters

      • ctx: IngressContext

        The per-item work envelope

      • next: () => Promise<void>

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

      Returns void | Promise<void>

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