MCPcopy
hub / github.com/qustavo/httplab / sortedHeaderKeys

Function sortedHeaderKeys

dump.go:79–86  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

77}
78
79func sortedHeaderKeys(req *http.Request) []string {
80 var keys []string
81 for k := range req.Header {
82 keys = append(keys, k)
83 }
84 sort.Strings(keys)
85 return keys
86}

Callers 1

DumpRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected