Skip to main content

Proxy Rewrite Plugin Reference

FieldTypeDefaultOptionalLimitationsDescription
Rewrite HTTP Methodstring-YesOptional Values: GET, POST, HEAD, PUT, Delete , CONNECT, OPTIONS, TRACE, PATCHSpecify how to rewrite HTTP method.
Request URI Modearray of rewrite headers operations-YesLength >= 1Header rewrite rules.

Request URI Mode

Regex Replace

FieldTypeDefaultOptionalLimitationsDescription
Regex Patternstring-NoValid PCRE regular expressionSpecify the regex pattern that the original request URI should match.
New URIstring-NoThe New Request URI pattern (can contain capture group from the Regex Pattern.

Replace

FieldTypeDefaultOptionalLimitationsDescription
New URIstring-NoThe New Request URI.

Rewrite Headers

FieldTypeDefaultOptionalLimitationsDescription
Operationstring-NoOptional Values: Add / Replace, Delete .The header operation type.
Headerstring-NoThe header name.
Valuestring-Required if Operation is Add /Replace.The header value.

API7.ai Logo

API Management for Modern Architectures with Edge, API Gateway, Kubernetes, and Service Mesh.

Product

API7 Cloud

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN Ltd. 2019 – 2024. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the

Apache Software Foundation