Custom request and response headers let you specify additional headers that the load balancer can add to HTTP(S) requests and responses. Depending on the information detected by the load balancer, these headers can include the following information:
- Latency to the client
- Geographic location of the client's IP address
- Parameters of the TLS connection
Custom request headers are supported for backend services, while custom response headers are supported for backend services and backend buckets.
The load balancer adds certain headers by default to all HTTP(S) requests and responses that it proxies between backends and clients. For more information, see Target proxies.
Before you begin
If necessary, update to the latest version of the Google Cloud CLI: