New (be)req fields: path scheme and authority

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Feb 2 10:20:09 CET 2016


--------
In message <CABoVN9B6Nx4m0OiNMZ+dBOwLcBwJY4xwYzwPR8QUhWhjC+KJ5A at mail.gmail.com>
, Dridi Boukelmoune writes:

>The proposal is to have new request fields:
>- req.path (the absolute path)
>- req.host (the virtual host)
>- req.authority

Doing this opens various cans of worms.  For instance, if you change
req.path, does req.url also change automatically ?

And as a general principle, I'd prefer to push "text-processing"
like this into VMODs if at all possible.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-dev mailing list