MCPcopy
hub / github.com/cli/cli / HandleHTTPError

Function HandleHTTPError

api/client.go:158–160  ·  view source on GitHub ↗

HandleHTTPError parses a http.Response into a HTTPError. The caller is responsible to close the response body stream.

(resp *http.Response)

Source from the content-addressed store, hash-verified

156//
157// The caller is responsible to close the response body stream.
158func HandleHTTPError(resp *http.Response) error {
159 return handleResponse(ghAPI.HandleHTTPError(resp))
160}
161
162// handleResponse takes a ghAPI.HTTPError or ghAPI.GraphQLError and converts it into an
163// HTTPError or GraphQLError respectively.

Callers 15

deleteAssetFunction · 0.92
deleteReleaseFunction · 0.92
deleteTagFunction · 0.92
uploadAssetFunction · 0.92
deleteAssetFunction · 0.92
FetchRefSHAFunction · 0.92
fetchReleasePathFunction · 0.92
getTagsFunction · 0.92
generateReleaseNotesFunction · 0.92
publishedReleaseExistsFunction · 0.92
createReleaseFunction · 0.92
publishReleaseFunction · 0.92

Calls 1

handleResponseFunction · 0.85

Tested by 2