(req *http.Request)
| 104 | } |
| 105 | |
| 106 | func dumpRequest(req *http.Request) { |
| 107 | dump, err := httputil.DumpRequestOut(req, true) |
| 108 | if err != nil { |
| 109 | fmt.Println("[DEBUG] An error occurred during request dump.", err.Error()) |
| 110 | } |
| 111 | fmt.Println("[DEBUG]", string(dump)) |
| 112 | } |
| 113 | |
| 114 | func dumpResponse(resp *http.Response) { |
| 115 | dump, err := httputil.DumpResponse(resp, true) |