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

Method DevMode

client.go:553–557  ·  view source on GitHub ↗

DevMode enables: 1. Dump content of all requests and responses to see details. 2. Output debug level log for deeper insights. 3. Trace all requests, so you can get trace info to analyze performance.

()

Source from the content-addressed store, hash-verified

551// 2. Output debug level log for deeper insights.
552// 3. Trace all requests, so you can get trace info to analyze performance.
553func (c *Client) DevMode() *Client {
554 return c.EnableDumpAll().
555 EnableDebugLog().
556 EnableTraceAll()
557}
558
559// SetScheme set the default scheme for client, will be used when
560// there is no scheme in the request URL (e.g. "github.com/imroc/req").

Callers 2

TestClientCloneFunction · 0.80
DevModeFunction · 0.80

Calls 3

EnableDumpAllMethod · 0.95
EnableTraceAllMethod · 0.80
EnableDebugLogMethod · 0.80

Tested by 1

TestClientCloneFunction · 0.64