(r *http.Request)
| 49 | } |
| 50 | |
| 51 | func convertRequest(r *http.Request) *debugRequest { |
| 52 | return &debugRequest{ |
| 53 | Method: r.Method, |
| 54 | Uri: r.RequestURI, |
| 55 | Proto: r.Proto, |
| 56 | Header: r.Header, |
| 57 | Host: r.Host, |
| 58 | RemoteAddress: r.RemoteAddr} |
| 59 | } |
| 60 | |
| 61 | func convertBody(body io.Reader) (string, string) { |
| 62 | b, err := io.ReadAll(body) |
no outgoing calls
no test coverage detected
searching dependent graphs…