summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_rewrite.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-09HTTP: stored matched action in nxt_http_request_t.Zhidao HONG1-2/+8
No functional changes.
2023-06-30Fixed indentation.Alejandro Colomar1-2/+2
Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-04-20HTTP: added basic URI rewrite.Zhidao HONG1-0/+104
This commit introduced the basic URI rewrite. It allows users to change request URI. Note the "rewrite" option ignores the contained query if any and the query from the request is preserverd. An example: "routes": [ { "match": { "uri": "/v1/test" }, "action": { "return": 200 } }, { "action": { "rewrite": "/v1$uri", "pass": "routes" } } ] Reviewed-by: Alejandro Colomar <alx@nginx.com>