Any way for a VMOD to iterate over all the header values?

Dag Haavi Finstad daghf at
Mon May 29 11:18:09 CEST 2017

Hi Ryan,

For an example have a look at what vmod-header does,

hp->hd[u].b will point to a string containing "header: value" for each of
the headers.

On Wed, May 24, 2017 at 1:58 AM, Ryan Burn <rnickb731 at> wrote:

> Does varnish expose any API that would let a VMOD iterate over all of
> the header key-value pairs? I know there's the VRT_GetHdr that allows
> you to lookup a single header, but I haven't found anything for access
> all the headers.
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at

Dag Haavi Finstad
Software Developer | Varnish Software
Mobile: +47 476 64 134
We Make Websites Fly!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list