MCPcopy Index your code
hub / github.com/imroc/req / String

Method String

trace.go:57–65  ·  view source on GitHub ↗

String return the details of trace information.

()

Source from the content-addressed store, hash-verified

55
56// String return the details of trace information.
57func (t TraceInfo) String() string {
58 if t.RemoteAddr == nil {
59 return "trace is not enabled"
60 }
61 if t.IsConnReused {
62 return fmt.Sprintf(traceReusedFmt, t.TotalTime, t.FirstResponseTime, t.ResponseTime, t.RemoteAddr, t.LocalAddr)
63 }
64 return fmt.Sprintf(traceFmt, t.TotalTime, t.DNSLookupTime, t.TCPConnectTime, t.TLSHandshakeTime, t.FirstResponseTime, t.ResponseTime, t.RemoteAddr, t.LocalAddr)
65}
66
67// TraceInfo represents the trace information.
68type TraceInfo struct {

Callers 15

roundtrip_js.goFile · 0.45
RoundTripMethod · 0.45
ReadMethod · 0.45
ReadMethod · 0.45
convertHeaderToStringFunction · 0.45
prepareMethod · 0.45
createDigestAuthFunction · 0.45
handleOrderedFormDataFunction · 0.45
parseRequestURLFunction · 0.45
TestLoggerFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestLoggerFunction · 0.36
TestSetProxyURLFunction · 0.36
TestSetProxyFunction · 0.36
TestAutoDecodeFunction · 0.36
TestSetCommonQueryStringFunction · 0.36
TestAddCommonQueryParamFunction · 0.36
TestSetCommonQueryParamFunction · 0.36
TestSetCommonQueryParamsFunction · 0.36