VIP2: VCL typed functions - varnishcache/varnish-cache GitHub Wiki

Synopsis

Add support for "real" VCL functions, which takes arguments and has return values, using the same VCL_* types as VMODS.

    def STRING
    foobar(INTEGER a1, BACKEND a2, STRING_LIST a3) {
            ...
    }

Why?

This will make it easier to produce and use packages and libraries of VCL code.

How?

The same infrastructure used for VMOD functions can be used for VCL functions.