summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_tstr.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-08NJS: supported loadable modules.Zhidao HONG1-2/+3
2023-04-20HTTP: added basic URI rewrite.Zhidao HONG1-0/+7
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>
2023-01-30NJS: adding the missing vm destruction.Zhidao HONG1-0/+18
This commit fixed the njs memory leak happened in the config validation, updating and http requests.
2022-11-20Basic njs support.Zhidao HONG1-17/+111
2022-11-20Var: separating nxt_tstr_t from nxt_var_t.Zhidao HONG1-0/+223
It's for the introduction of njs support. For each option that supports native variable and JS template literals introduced next, it's unified as template string. No functional changes.