Public alternative to VFP_Push
Guillaume Quintard
guillaume.quintard at gmail.com
Sat Apr 23 13:57:19 UTC 2022
Hi!
With 6.6, VFP_Push was made private, but it looks like there's no
alternative for it. I've seen VCL_StackVFP, but it's equally private.
For context, I'm currently using VFP_Push in
https://github.com/gquintard/vmod_reqwest/blob/4aecc793643d5eb395c43cbbad463c7b0deef6ab/src/lib.rs#L658
, pretty much exactly like Varnish does it internally:
- have a backend with a gethdrs method
- get called by VDI_GetHdr
- once the headers are in, use VFP_Push to inject a processor at the start
of the pipeline
It works very well, but if there's a way to respect the API boundaries, I'd
be happy to abide.
Cheers,
--
Guillaume Quintard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20220423/699b70df/attachment.html>
More information about the varnish-misc
mailing list