• play_circle Get started
    • Gloo Gateway overview
    • Architecture
    • Custom resources
      • Policy overview
      • RouteOption
      • ListenerOption
      • HTTPListenerOption
      • VirtualHostOption
      • Overview
      • Enable resource validation
      • Test resources
    • Helm
    • Airgap environment
    • Argo CD
    • Install the glooctl CLI
    • Licensing
    • Default gateway proxy setup
    • Customize the default setup
        • Simple ingress
          • Network Load Balancer (NLB)
          • Application Load Balancer (ALB)
      • HTTP
      • HTTPS
      • Kubernetes services
        • About Upstreams
        • Static
        • Kubernetes service
        • AWS EC2
        • AWS Lambda
        • Google Cloud Platform services
        • HTTP/2
      • Path
      • Header
      • HTTP method
      • Query parameter
      • HTTPS redirect
      • Host redirect
      • Path redirects
      • Host rewrites
      • Path rewrites
      • Route delegation overview
      • Basic example
      • Multiple parents
      • Multi-level delegation
      • Header and query match
      • Policy inheritance
      • Policy overrides
    • Buffering
      • About extProc
      • Header manipulation
      • Request headers
      • Response headers
      • Gateway health checks
      • Upstream health checks
    • TCP keepalive
    • Proxy protocol
      • Templating language
      • Inject response headers
      • Add multiple values to headers
      • Decode base64 headers
      • Use extractors for headers
      • Add headers to body
      • Extract query parameters
      • Update request paths and methods
      • Create redirect URLs
      • Change response status
      • Update response body
      • Enrich access logs
    • Traffic splitting
      • About response caching
      • Set up caching
    • Fault injection
    • Retries
    • Shadowing
    • Timeouts
    • Traffic tapping
    • Access logging
    • CORS
    • CSRF
    • Data loss prevention (DLP)
      • Basic auth
      • API keys
      • LDAP
        • About OAuth
        • Auth0
        • Google
        • Keycloak
        • Okta
        • More OAuth features
      • OPA
        • HTTP
        • gRPC
      • Overview
      • Gateway-level JWT policy
      • Provider example
        • Envoy API
        • Set-style API
        • About local rate limiting
        • HTTP
    • Web Application Firewall (WAF)
    • About Gloo Portal
    • Portal architecture
      • Set up Gloo Portal
      • Create API products
      • Create a portal
      • Cleanup
      • Create ApiDocs
        • Sample React app
          • About Backstage
          • Backstage backend plugin
          • Backstage frontend plugin
      • End user guide
      • Troubleshoot
    • Argo Rollouts
    • AWS ELBs
    • ExternalDNS and cert-manager
    • Istio service mesh
    • Gateway metrics
    • Debug your setup
    • Upgrade
    • Uninstall
      • Requests
    • Version support
    • API reference
      • Open source
      • Enterprise Edition
      • glooctl check
      • glooctl install gateway
      • glooctl install gateway enterprise
      • glooctl uninstall
      • glooctl upgrade
      • Open source
      • Enterprise
    • Contribution guidelines
    • Open Source Attribution
    • Port reference
    • Security posture
      • CVE lifecycle handling
      • Open source
      • Enterprise
    • About Solo Support
    • Submit a request
    • main
    • 1.19.x (latest)
    • 1.18.x
    • 1.17.x
    • GitHub
    • Twitter / X
  • to navigate
  • to select
  • to close
    • Home
    • Traffic management
    • Transformations
    On this page

    This documentation uses Gloo Gateway proxies with the Kubernetes Gateway API. To use the Edge API instead, click here. Note that some features, such as AI gateways, are not supported with the Edge API.

    Transformations

    Mutate and transform requests and responses before forwarding them to the destination.

    article

    Templating language

    Learn how to use transformation templates to transform headers and bodies of requests and responses.

    article

    Inject response headers

    Use custom Gloo Gateway functions to inject headers into responses.

    article

    Add multiple values to headers

    Use the headersToAppend capability to add multiple values to the same header.

    article

    Decode base64 headers

    Automatically decode base64 values in request headers and add the decoded value as a response …

    article

    Use extractors for headers

    Use Gloo Gateway extractors to retrieve request header values, transform them, and add them back as …

    article

    Add headers to body

    Use extractors to capture request header values and add those values to the request body.

    article

    Extract query parameters

    Extract query parameters, transform them, and add them to the response body.

    article

    Update request paths and methods

    Use the :path and :method pseudo headers to change the request path and HTTP method when a …

    article

    Create redirect URLs

    Extract the values of common pseudo headers to generate a redirect URL.

    article

    Change response status

    Update the response status based on fields that are present in the request body.

    article

    Update response body

    Learn how to return a customized response body and how replace specific values in the body.

    article

    Enrich access logs

    Use a transformation template to inject additional metadata to your access logs.

    Solo.io copyright 2025