Actually I suppose the syntax could be same as sample fetches. For example:

http-response set-tos %[res.hdr_val(X-Tos)]

This syntax currently doesn't work. Is it possible to make this work easily?

On Sun, Jul 26, 2015 at 3:45 PM Vinay Y S <vinay...@gmail.com> wrote:

> Hi,
> I would like to use set-mark and set-tos to values returned by the backend
> in the http-response header field. Is this possible?
>
> For example a syntax like this would be nice:
> http-response set-tos $http_resp_hdr[tos]
>
> Idea is to have backend determine the best value for tos and mark on a per
> request basis depending on the client ip address, client id etc. And then
> based on the tos & mark values I've my policy routing setup to choose
> outbound interface and traffic queues etc.
>
> Thanks,
> Vinay
>

Reply via email to