We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
HandleHTTPError
1 parent 41e1e0d commit ec8f5caCopy full SHA for ec8f5ca
1 file changed
pkg/api/errors.go
@@ -98,6 +98,8 @@ func matchPath(p, expect string) bool {
98
}
99
100
// HandleHTTPError parses a http.Response into a HTTPError.
101
+//
102
+// The function attempts to read the response's body, but it does not close it.
103
func HandleHTTPError(resp *http.Response) error {
104
httpError := &HTTPError{
105
Headers: resp.Header,
0 commit comments