Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1.93 KB

03-how-to-use-x-cf-headers.md

File metadata and controls

15 lines (13 loc) · 1.93 KB
title expires_at tags
How To Use X-CF Headers
never
routing-release

How To Use X-CF Headers

Header If a client provides this header will that affect routing decisions? Value More info
X-CF-ApplicationID No App guid for the app that gorouter proxied the request to. This header is always set/overwritten on the request by gorouter when sending traffic to an app.
X-CF-InstanceID No Instance guid for the app that gorouter proxied the request to. This header is always set/overwritten on the request by gorouter when sending traffic to an app.
X-Cf-Instanceindex No Instance index for the app that gorouter proxied the request to. This header is always set/overwritten on the request by gorouter when sending traffic to an app.
X-Cf-App-Instance Yes Instance index for the app that gorouter proxied the request to. This is a header that can be provided by the user for routing a specific index. Gorouter does not change this header. You set it in the format: "APP-GUID:APP-INSTANCE-INDEX". If you provide an invalid header (bad format, nonexistent guid/index) then the gorouter will return a 400. See here for more docs.
X-Cf-RouterError No See possible values here. Gorouter adds this header to the response when a routing error has occured.