mockttp
    Preparing search index...

    Class PassThroughStep

    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.

    Hierarchy (View Summary)

    Implements

    Index
    beforeRequest?: (
        req: CompletedRequest,
    ) => MaybePromise<void | CallbackRequestResult>
    beforeResponse?: (
        res: PassThroughResponse,
        req: CompletedRequest,
    ) => MaybePromise<void | CallbackResponseResult>
    clientCertificateHostMap: {
        [host: string]: { passphrase?: string; pfx: Buffer };
    }
    extraCACertificates: CADefinition[] = []
    ignoreHostHttpsErrors: boolean | string[] = []
    lookupOptions?: PassThroughLookupOptions
    mirrorTlsFingerprint: boolean
    proxyConfig?: ProxyConfig
    simulateConnectionErrors: boolean
    transformRequest?: RequestTransform
    transformResponse?: ResponseTransform
    type: "passthrough" = 'passthrough'
    isFinal: true