Use sess *sp from vcl

Cosimo Streppone cosimo at streppone.it
Fri Dec 24 09:10:23 CET 2010


In data 24 dicembre 2010 alle ore 05:53:04, Indranil Chakravorty  
<indranilc at rediff-inc.com> ha scritto:

> Hi,
>   Is is possible to use the sp available from vcl and which is used  
> as a parameter for the compiled vcl C functions?

It's definitely possible to use "sp" in your C functions:

   https://github.com/cosimo/varnish-accept-language/blob/master/examples/sample.vcl#L11

the vcl_rewrite_accept_language() function is defined as:

   https://github.com/cosimo/varnish-accept-language/blob/master/examples/accept-language.vcl#L156

-- 
Cosimo




More information about the varnish-misc mailing list