]> err.no Git - varnish/commit
Implement setting of HTTP headers:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 5 Jul 2007 09:47:52 +0000 (09:47 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 5 Jul 2007 09:47:52 +0000 (09:47 +0000)
commit27b0ad735ba36dc9fd9a95c6b0838c2366fb9d22
tree81978fb1c07300e2bc424c54b4da2309b75688fb
parenteb6c70a60e6ee2727af28f60876eadf8439012a9
Implement setting of HTTP headers:

sub vcl_deliver {
set resp.http.phk = "Beastie" "Rules";
}

Would result in a new header line:

phk: BeastieRules

Notice that strings are concatenated directly, you add spaces, commas etc
where you want them.

Other variables which have STRING format (or which can be converted to
STRING format) can also be used:

sub vcl_deliver {
set resp.http.phk = "Server is: " resp.http.server ;
}

Could result in:

phk: Server is: Apache/1.3.x LaHonda (Unix)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1646 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_http.c
varnish-cache/bin/varnishd/cache_vrt.c
varnish-cache/lib/libvcl/vcc_action.c
varnish-cache/lib/libvcl/vcc_compile.h
varnish-cache/lib/libvcl/vcc_gen_obj.tcl
varnish-cache/lib/libvcl/vcc_obj.c
varnish-cache/lib/libvcl/vcc_var.c