sourcegraph/internal/requestclient
Robert Lin 315488fc29
requestclient: add SRC_USE_CLOUDFLARE_HEADERS to use CF headers (#58567)
Our Sourcegraph Cloud instances are also behind Cloudflare WAF, which makes `Cf-` headers available to them as well, which could be useful for the 2 data points in `requestclient` that prefer `Cf-` headers in Sourcegraph.com: `ForwardedFor` and client geolocation (https://github.com/sourcegraph/sourcegraph/pull/58386).

This change adds `SRC_USE_CLOUDFLARE_HEADERS` to opt in to this mechanism outside of dotcom.
2023-12-07 20:27:28 +00:00
..
geolocation Cleanup: use new go 1.21 features (#58617) 2023-11-28 13:49:38 -07:00
BUILD.bazel requestclient: add SRC_USE_CLOUDFLARE_HEADERS to use CF headers (#58567) 2023-12-07 20:27:28 +00:00
client_test.go requestclient: add country-level geolocation data (#58386) 2023-11-22 14:51:48 -08:00
client.go requestclient: add country-level geolocation data (#58386) 2023-11-22 14:51:48 -08:00
grpc_test.go requestclient: add country-level geolocation data (#58386) 2023-11-22 14:51:48 -08:00
grpc.go reqeuestclient, audit, cody-gateway: log user-agent as well (#53785) 2023-06-20 22:12:11 +00:00
http.go requestclient: add SRC_USE_CLOUDFLARE_HEADERS to use CF headers (#58567) 2023-12-07 20:27:28 +00:00