(r *http.Request)
| 85 | } |
| 86 | |
| 87 | func cloneRequestMetadata(r *http.Request) *http.Request { |
| 88 | return &http.Request{ |
| 89 | Method: r.Method, |
| 90 | URL: cloneURL(r.URL), |
| 91 | Proto: r.Proto, |
| 92 | ProtoMajor: r.ProtoMajor, |
| 93 | ProtoMinor: r.ProtoMinor, |
| 94 | Header: cloneHeader(r.Header), |
| 95 | Trailer: cloneHeader(r.Trailer), |
| 96 | Body: defaultBody(), |
| 97 | ContentLength: r.ContentLength, |
| 98 | TransferEncoding: r.TransferEncoding, |
| 99 | Close: r.Close, |
| 100 | Host: r.Host, |
| 101 | RemoteAddr: r.RemoteAddr, |
| 102 | RequestURI: r.RequestURI, |
| 103 | TLS: r.TLS, |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func cloneResponseMetadata(r *http.Response) *http.Response { |
| 108 | return &http.Response{ |
no test coverage detected
searching dependent graphs…