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

Function normalizeVerboseLog

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

Source from the content-addressed store, hash-verified

545var timezoneRE = regexp.MustCompile(`(?m)^> Time-Zone: .+`)
546
547func normalizeVerboseLog(t string) string {
548 t = requestAtRE.ReplaceAllString(t, "* Request at <time>")
549 t = hostWithPortRE.ReplaceAllString(t, "<host>:<port>")
550 t = dateRE.ReplaceAllString(t, "< Date: <time>")
551 t = durationRE.ReplaceAllString(t, "* Request took <duration>")
552 t = timezoneRE.ReplaceAllString(t, "> Time-Zone: <timezone>")
553 return t
554}

Callers 1

TestNewHTTPClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected