(r *http.Request)
| 46 | } |
| 47 | |
| 48 | func closeBody(r *http.Request) error { |
| 49 | if r.Body == nil { |
| 50 | return nil |
| 51 | } |
| 52 | return r.Body.Close() |
| 53 | } |
| 54 | |
| 55 | // requestBodyReadError wraps an error from (*Request).write to indicate |
| 56 | // that the error came from a Read call on the Request.Body. |
no test coverage detected
searching dependent graphs…