MCPcopy Index your code
hub / github.com/cloudfoundry/cli / PrintRequest

Method PrintRequest

api/logcache/log_cache_client.go:44–53  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

42}
43
44func (p DebugPrinter) PrintRequest(req *http.Request) {
45 for _, output := range p.outputs {
46 _ = output.Start() // nolint
47 _ = output.DisplayType("REQUEST", time.Now()) // nolint
48 _ = output.DisplayRequestHeader(req.Method, req.URL.RequestURI(), req.Proto) // nolint
49 _ = output.DisplayHost(req.URL.Host) // nolint
50 _ = output.DisplayDump(headersString(req.Header)) // nolint
51 _ = output.Stop() // nolint
52 }
53}
54
55func (p DebugPrinter) PrintResponse(resp *http.Response) {
56 for _, output := range p.outputs {

Callers 1

DoMethod · 0.80

Calls 8

headersStringFunction · 0.85
StartMethod · 0.65
DisplayTypeMethod · 0.65
NowMethod · 0.65
DisplayRequestHeaderMethod · 0.65
DisplayHostMethod · 0.65
DisplayDumpMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected