<div dir="ltr"><div><div>Hi Ryan,<br><br></div>For an example have a look at what vmod-header does, <a href="https://github.com/varnish/varnish-modules/blob/master/src/vmod_header.c#L134-L140">https://github.com/varnish/varnish-modules/blob/master/src/vmod_header.c#L134-L140</a><br><br></div>hp->hd[u].b will point to a string containing "header: value" for each of the headers.<br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 24, 2017 at 1:58 AM, Ryan Burn <span dir="ltr"><<a href="mailto:rnickb731@gmail.com" target="_blank">rnickb731@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does varnish expose any API that would let a VMOD iterate over all of<br>
the header key-value pairs? I know there's the VRT_GetHdr that allows<br>
you to lookup a single header, but I haven't found anything for access<br>
all the headers.<br>
<br>
______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Dag Haavi Finstad<br>Software Developer | Varnish Software<br>Mobile: +47 476 64 134<br>We Make Websites Fly!</div>
</div>