- Why Ambassador?
- Features and Benefits
- Using Ambassador in Your Organization
- Ambassador vs. Other Software
- Connecting Services
- Service Mesh
- Best Practices
- IDP Support
- Developer PortalPortal
- Upgrading Ambassador
- Statistics and Monitoring
- Need Help?
Ambassador can add a dictionary of HTTP headers that can be added to each request that is passed to a service.
add_request_headers attribute is a dictionary of
value pairs. The
value can be a
object. When its an
object, the object should have a
value property, which is the actual header value, and the remaining attributes are additional envoy properties. Look at the example to see the usage.
Envoy dynamic values
%PROTOCOL% are supported, in addition to static values.
--- --- apiVersion: getambassador.io/v1 kind: Mapping metadata: name: tour-backend spec: prefix: /backend/ add_request_headers: x-test-proto: "%PROTOCOL%" x-test-ip: "%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%" x-test-static: This is a test header x-test-static-2: value: This the test header #same as above x-test-static header x-test-object: value: This the value append: False #True by default service: tour:8080
will add the protocol, client IP, and a static header to