Skip to content

feat: proxy_rewrite plugin support multiple regex pattern matching #9179

Description

@fengxsong

Description

Currently the regex_uri field in plugin proxy_rewrite is a slice type and only supports containing exactly 2 parameters, the first one is what matched, and the second is where to go. IMO, multiple regex pattern matching is a very common need, so we don't need to write multiple proxy configs in one single rule.
So I have a proposal if we can support an even number of parameters(compatible with the previous version)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions