Header manipulation

Attach to:

Backend

There are a few different policies that offer manipulation of HTTP requests and responses.

The requestHeaderModifier and responseHeaderModifier modify request and response headers respectively. These allow you to add, set, or remove headers. add and set differ in the case the header already exists; set will replace it while add will append.

requestHeaderModifier:
  add:
    x-req-added: value
  remove:
    - x-remove-me

More advanced operations are available with the transformation policy. Like the HeaderModifier policies, this can also add, set, or remove headers, but can also manipulate HTTP bodies. Additionally, each modification is based on a CEL expression rather than static strings.

Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.