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.
()
| 551 | // 2. Output debug level log for deeper insights. |
| 552 | // 3. Trace all requests, so you can get trace info to analyze performance. |
| 553 | func (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"). |