- 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 4 commits
-
-
Nils Goroll authored
... such that it can optionally be called before match()
-
Nils Goroll authored
This is in preparation for body matching.
-
Nils Goroll authored
This is in preparation for body matching.
-
Nils Goroll authored
See varnish-cache 7f28888779fd14f99eb34e50f6fb07ea6bbff999
-
- 15 Sep, 2022 1 commit
-
-
Nils Goroll authored
-
- 01 Nov, 2021 1 commit
-
-
Nils Goroll authored
The VCL_REGEX type requires that the pattern consist of constant strings only. In contrast, with a STRING argument and compilation in this vmod, we can support patterns to be constructed dynamically in vcl_init {}, which is a relevant advantage. I did consider to support both a STRING and a VCL_REGEX argument (both being optional, requiring at least one to be set) but found no compelling reason for using the VCL_REGEX type, because the pattern is checked anyway and it does not make a relevant difference if that check happens at the VCC or the vcl_init stage. This reverts commit 0ee2f4ae.
-
- 28 Oct, 2021 1 commit
-
-
Nils Goroll authored
-
- 26 Oct, 2021 1 commit
-
-
Nils Goroll authored
-
- 13 Sep, 2021 1 commit
-
-
Nils Goroll authored
-
- 03 Aug, 2021 1 commit
-
-
Nils Goroll authored
Based on the VRE_unpack() PR in https://github.com/varnishcache/varnish-cache/pull/3657 As discussed with Geoff, we might still switch to VRE_capture() once it is cooked, see https://github.com/varnishcache/varnish-cache/pull/3659
-
- 06 Jan, 2021 8 commits
-
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
-
Nils Goroll authored
When we copy onto ovector[MAX_OV_USED] == ovector[MAX_MATCHES * 2], we want to make sure that we do not exceed the destination, not the source.
-
Nils Goroll authored
It could infer that the result of a non-NULL cast of task->priv can not be null, but it doesn't. Sigh.
-
Nils Goroll authored
-
- 09 Dec, 2020 1 commit
-