|
|
@ -29,6 +29,8 @@ func httpDump(req *http.Request, resp *http.Response) { |
|
|
|
} |
|
|
|
} |
|
|
|
fmt.Println(Green("Request:")) |
|
|
|
fmt.Println(Green("Request:")) |
|
|
|
fmt.Printf("%s %s %s\n", Blue(req.Method), req.RequestURI, respStatusStr) |
|
|
|
fmt.Printf("%s %s %s\n", Blue(req.Method), req.RequestURI, respStatusStr) |
|
|
|
|
|
|
|
fmt.Printf("%s %s\n", Blue("RemoteAddr:"), req.RemoteAddr) |
|
|
|
|
|
|
|
|
|
|
|
for headerName, headerContext := range req.Header { |
|
|
|
for headerName, headerContext := range req.Header { |
|
|
|
fmt.Printf("%s: %s\n", Blue(headerName), headerContext) |
|
|
|
fmt.Printf("%s: %s\n", Blue(headerName), headerContext) |
|
|
|
} |
|
|
|
} |
|
|
|