- 01 Sep, 2023 1 commit
-
-
Nils Goroll authored
Patch best viewed with -b
-
- 20 Jul, 2023 11 commits
-
-
Nils Goroll authored
-
Nils Goroll authored
We can now iterate over bodies, calling a subroutine for each match.
-
Nils Goroll authored
Previously, we would only look for the first ever match. To support multiple matches, we now save the start offset relative to the ptr argument for the next invocation.
-
Nils Goroll authored
... or the highest match
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
The main reason is an upcoming improvement which needs workspace. But also using workspace here probably does not come with too relevant an advantage, because regular expression matching and copying are already expensive, and the need to copy should be the exception.
-
Nils Goroll authored
This is in preparation of an upcoming refactor to heap space.
-
- 19 Jul, 2023 2 commits
-
-
Nils Goroll authored
-
Nils Goroll authored
-
- 07 Jun, 2023 1 commit
-
-
Nils Goroll authored
-
- 05 Jun, 2023 1 commit
-
-
Nils Goroll authored
-
- 01 Jun, 2023 1 commit
-
-
Geoff Simmons authored
Add filters: regex objects to perform substitutions on bodies See merge request !3
-
- 29 May, 2023 2 commits
-
-
Nils Goroll authored
-
Nils Goroll authored
If the optional ``asfilter`` parameter to ``re.regex()`` is true, the vmod registers itself as a Varnish Fetch Processor (VFP) for use in `beresp.filters` and as a Varnish Delivery Processor (VDP) for use in `resp.filters`. In this setup, the `xregex.substitute_match()` and `xregex.substitute_all()` methods can be used to define replacements for matches on the body. Example: sub vcl_init { new reiher = re.regex("r(ei)h(er)", asfilter = true); } sub vcl_deliver { unset req.http.Accept-Encoding; set resp.filters += " reiher"; reiher.substitute_match(1, "czapla"); reiher.substitute_match(2, "\1\2"); reiher.substitute_match(0, "heron"); }
-
- 28 May, 2023 3 commits
-
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
- 02 May, 2023 2 commits
-
-
Nils Goroll authored
-
Nils Goroll authored
Ref varnish-cache 478e310a7d2c168e1c361d6f34291177cbc2a889
-
- 05 Apr, 2023 5 commits
-
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
- 04 Apr, 2023 1 commit
-
-
Nils Goroll authored
-
- 01 Apr, 2023 1 commit
-
-
Nils Goroll authored
-
- 28 Feb, 2023 1 commit
-
-
Nils Goroll authored
-
- 08 Dec, 2022 1 commit
-
-
Nils Goroll authored
-
- 01 Dec, 2022 1 commit
-
-
Nils Goroll authored
-
- 11 Nov, 2022 1 commit
-
-
Nils Goroll authored
Code taken from varnish-cache
-
- 08 Nov, 2022 3 commits
-
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
- 26 Oct, 2022 2 commits
-
-
Nils Goroll authored
... such that it can optionally be called before match()
-
Nils Goroll authored
This is in preparation for body matching.
-