• Dridi Boukelmoune's avatar
    builtin: Split vcl_backend_response too · 7d2e14df
    Dridi Boukelmoune authored
    It's one more indirection than vcl_recv because the same logic applies
    to multiple cases, so we first have subs for the different conditions
    and they all call the shared vcl_beresp_hitmiss sub.
    
    The vcl_beresp_hitmiss sub returns on purpose, that doesn't change the
    default VCL behavior and makes it more usable from VCL code:
    
        if (some user condition applies) {
                call vcl_beresp_hitmiss;
        }
    
    No need to force all call sites to return(deliver) when the desired
    outcome is explicit. Extracting this sub also enables VCL authors to
    only tweak the hitmiss TTL in one place.
    
    For better compliance, we might also introduce a vcl_beresp_hitpass sub
    for some of the built-in cases where a hit-for-miss object might be less
    appropriate. The compliance effort will however change some semantics
    and is outside of the scope of this split.
    7d2e14df
Name
Last commit
Last update
.circleci Loading commit data...
.github Loading commit data...
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
tools Loading commit data...
vmod Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.lgtm.yml Loading commit data...
.syntastic_c_config Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.Packaging Loading commit data...
README.rst Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
flint.lnt Loading commit data...
varnish-legacy.m4 Loading commit data...
varnish.m4 Loading commit data...
varnishapi-uninstalled.pc.in Loading commit data...
varnishapi.pc.in Loading commit data...
vtc.am Loading commit data...