增加RemoteAddr

main
zhengbaoyang 8 years ago
parent dc98fa0b88
commit caf6de4371
  1. 2
      dump.go

@ -29,6 +29,8 @@ func httpDump(req *http.Request, resp *http.Response) {
}
fmt.Println(Green("Request:"))
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 {
fmt.Printf("%s: %s\n", Blue(headerName), headerContext)
}

Loading…
Cancel
Save