Libraries v5.2.0
    Preparing search index...

    Interface RequestSignalContext

    HTTP lifecycle fields required to cancel request-owned work.

    interface RequestSignalContext {
        request: Pick<IncomingMessage, "aborted" | "once" | "off">;
        response: Pick<
            ServerResponse,
            "destroyed"
            | "writableFinished"
            | "once"
            | "off",
        >;
        markResponseOutcome?(outcome: "timeout" | "cancelled"): void;
    }
    Index
    request: Pick<IncomingMessage, "aborted" | "once" | "off">
    response: Pick<
        ServerResponse,
        "destroyed"
        | "writableFinished"
        | "once"
        | "off",
    >
    • Optional lifecycle integration supplied by RequestContext.

      Parameters

      • outcome: "timeout" | "cancelled"

      Returns void