mockttp
    Preparing search index...

    Interface RequestStepDefinition

    The definition of a request rule step, which can be passed to Mockttp to define a rule.

    Implementation of the step is not included in the definition classes, but instead exists in an *Impl class defined separately and used internally.

    interface RequestStepDefinition {
        type:
            | "file"
            | "stream"
            | "timeout"
            | "simple"
            | "callback"
            | "close-connection"
            | "reset-connection"
            | "delay"
            | "wait-for-request-body"
            | "passthrough"
            | "json-rpc-response"
            | "webhook"
            | "informational-response";
        dispose(): void;
        explain(): string;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    type:
        | "file"
        | "stream"
        | "timeout"
        | "simple"
        | "callback"
        | "close-connection"
        | "reset-connection"
        | "delay"
        | "wait-for-request-body"
        | "passthrough"
        | "json-rpc-response"
        | "webhook"
        | "informational-response"