MCPcopy Create free account
hub / github.com/cli/cli / normalizeVerboseLog

Function normalizeVerboseLog

api/http_client_test.go:659–666  ·  view source on GitHub ↗
(t string)

Source from the content-addressed store, hash-verified

657var timezoneRE = regexp.MustCompile(`(?m)^> Time-Zone: .+`)
658
659func normalizeVerboseLog(t string) string {
660 t = requestAtRE.ReplaceAllString(t, "* Request at <time>")
661 t = hostWithPortRE.ReplaceAllString(t, "<host>:<port>")
662 t = dateRE.ReplaceAllString(t, "< Date: <time>")
663 t = durationRE.ReplaceAllString(t, "* Request took <duration>")
664 t = timezoneRE.ReplaceAllString(t, "> Time-Zone: <timezone>")
665 return t
666}

Callers 2

TestNewHTTPClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected