mscb402 commented on code in PR #8336:
URL: https://github.com/apache/apisix/pull/8336#discussion_r1024669832
##########
docs/en/latest/plugins/proxy-rewrite.md:
##########
@@ -39,7 +39,10 @@ The `proxy-rewrite` Plugin rewrites Upstream proxy
information such as `scheme`,
| method | string | False | | ["GET",
"POST", "PUT", "HEAD", "DELETE", "OPTIONS","MKCOL", "COPY", "MOVE", "PROPFIND",
"PROPFIND","LOCK", "UNLOCK", "PATCH", "TRACE"] | Rewrites the HTTP method.
|
| regex_uri | array[string] | False | |
| New upstream forwarding address.
Regular expressions can be used to match the URL from client. If it matches,
the URL template is forwarded to the Upstream otherwise, the URL from the
client is forwarded. When both `uri` and `regex_uri` are configured, `uri` is
used first. For example, `[" ^/iresty/(.*)/(.*)/(.*)", "/$1-$2-$3"]`. Here, the
first element is the regular expression to match and the second element is the
URL template forwarded to the Upstream. |
| host | string | False | |
| New Upstream host address.
|
-| headers | object | False | |
| New Upstream headers. Headers
are overwritten if they are already present otherwise, they are added to the
present headers. To remove a header, set the header value to an empty string.
The values in the header can contain Nginx variables like `$remote_addr` and
`$client_addr`.
|
+| headers | object | False | |
| |
+| headers.add | object | false | | | Append
the new headers. The format is `{"name: value",...}`. The values in the header
can contain Nginx variables like $remote_addr and $balancer_ip.
|
+| headers.set | object | false | | | Rewriting
the headers. The format is `{"name": "value", ...}`. The values in the header
can contain Nginx variables like $remote_addr and $balancer_ip.
|
Review Comment:
yes, look like overwrite is better
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]