Request implements Printer.Request.
(req *http.Request)
| 53 | |
| 54 | // Request implements Printer.Request. |
| 55 | func (p CompactPrinter) Request(req *http.Request) { |
| 56 | if req != nil { |
| 57 | p.logger.Logf("%s %s", req.Method, req.URL) |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | // Response implements Printer.Response. |
| 62 | func (CompactPrinter) Response(*http.Response, time.Duration) { |