MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / copyTrailers

Function copyTrailers

proxy/proxy.go:381–387  ·  view source on GitHub ↗
(w connection.ResponseWriter, response *http.Response)

Source from the content-addressed store, hash-verified

379}
380
381func copyTrailers(w connection.ResponseWriter, response *http.Response) {
382 for trailerHeader, trailerValues := range response.Trailer {
383 for _, trailerValue := range trailerValues {
384 w.AddTrailer(trailerHeader, trailerValue)
385 }
386 }
387}
388
389func getDestFromRule(rule *ingress.Rule, req *http.Request) (string, error) {
390 switch rule.Service.String() {

Callers 1

proxyHTTPRequestMethod · 0.85

Calls 1

AddTrailerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…