Set header based on other header value

Hello all, quick question about about VirtualService routing, can I set request header to a dynamic value based on the value of a another header, say set host to x-forwarded-host ?

http:

  • headers:
    request:
    set:
    host: “{x-forwarded-host}”

thanks.