EnableDumpEachRequestWithoutResponseBody enable dump without response body at the request-level for each request, and only temporarily stores the dump content in memory, call Response.Dump() to get the dump content when needed.
()
| 766 | // request-level for each request, and only temporarily stores the dump content in memory, |
| 767 | // call Response.Dump() to get the dump content when needed. |
| 768 | func (c *Client) EnableDumpEachRequestWithoutResponseBody() *Client { |
| 769 | return c.OnBeforeRequest(func(client *Client, req *Request) error { |
| 770 | if req.RetryAttempt == 0 { // Ignore on retry, no need to repeat enable dump. |
| 771 | req.EnableDumpWithoutResponseBody() |
| 772 | } |
| 773 | return nil |
| 774 | }) |
| 775 | } |
| 776 | |
| 777 | // EnableDumpEachRequestWithoutRequestBody enable dump without request body at the |
| 778 | // request-level for each request, and only temporarily stores the dump content in memory, |
no test coverage detected