zap-cdk
    Preparing search index...

    Interface IReplacerRule

    IReplacerRule Represents a rule for replacing strings in requests or responses.

    interface IReplacerRule {
        description: string;
        initiators?: number[];
        matchRegex?: boolean;
        matchString: string;
        matchType:
            | "req_header"
            | "req_header_str"
            | "req_body_str"
            | "resp_header"
            | "resp_header_str"
            | "resp_body_str";
        replacementString: string;
        tokenProcessing?: boolean;
        url?: string;
    }
    Index

    Properties

    description: string

    The name of the rule.

    initiators?: number[]

    A list of integers representing the initiators.

    matchRegex?: boolean

    If set, matchString will be treated as a regex, default: false.

    matchString: string

    String used to identify what should be replaced.

    matchType:
        | "req_header"
        | "req_header_str"
        | "req_body_str"
        | "resp_header"
        | "resp_header_str"
        | "resp_body_str"

    Type of match.

    replacementString: string

    The new string that will replace the specified selection.

    tokenProcessing?: boolean

    When enabled, replacementString may contain a single token.

    url?: string

    A regex to match URLs; if empty, it will match all.