1. 01 Oct, 2024 1 commit
  2. 05 Nov, 2023 3 commits
  3. 01 Sep, 2023 1 commit
  4. 20 Jul, 2023 11 commits
  5. 19 Jul, 2023 2 commits
  6. 07 Jun, 2023 1 commit
  7. 05 Jun, 2023 1 commit
  8. 01 Jun, 2023 1 commit
  9. 29 May, 2023 2 commits
    • Nils Goroll's avatar
      Update README · a25e5b63
      Nils Goroll authored
      a25e5b63
    • Nils Goroll's avatar
      Add filters: regex objects to perform substitutions on bodies · f8fb9d5c
      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");
      	    }
      f8fb9d5c
  10. 28 May, 2023 3 commits
  11. 02 May, 2023 2 commits
  12. 05 Apr, 2023 5 commits
  13. 04 Apr, 2023 1 commit
  14. 01 Apr, 2023 1 commit
  15. 28 Feb, 2023 1 commit
  16. 08 Dec, 2022 1 commit
  17. 01 Dec, 2022 1 commit
  18. 11 Nov, 2022 1 commit
  19. 08 Nov, 2022 1 commit