MCPcopy
hub / github.com/cloudflare/cloudflared / FindCfRayHeader

Function FindCfRayHeader

connection/connection.go:315–317  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

313}
314
315func FindCfRayHeader(req *http.Request) string {
316 return req.Header.Get("Cf-Ray")
317}
318
319func IsLBProbeRequest(req *http.Request) bool {
320 return strings.HasPrefix(req.UserAgent(), lbProbeUserAgentPrefix)

Callers 2

newHTTPLoggerFunction · 0.92
ServeHTTPMethod · 0.85

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected