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

Method PrintResponse

api/logcache/log_cache_client.go:55–63  ·  view source on GitHub ↗
(resp *http.Response)

Source from the content-addressed store, hash-verified

53}
54
55func (p DebugPrinter) PrintResponse(resp *http.Response) {
56 for _, output := range p.outputs {
57 _ = output.Start() // nolint
58 _ = output.DisplayType("RESPONSE", time.Now()) // nolint
59 _ = output.DisplayResponseHeader(resp.Proto, resp.Status) // nolint
60 _ = output.DisplayDump(headersString(resp.Header)) // nolint
61 _ = output.Stop() // nolint
62 }
63}
64
65func (p *DebugPrinter) addOutput(output RequestLoggerOutput) {
66 p.outputs = append(p.outputs, output)

Callers 1

DoMethod · 0.80

Calls 7

headersStringFunction · 0.85
StartMethod · 0.65
DisplayTypeMethod · 0.65
NowMethod · 0.65
DisplayResponseHeaderMethod · 0.65
DisplayDumpMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected