MCPcopy Create free account
hub / github.com/cli/cli / HandleHTTPError

Function HandleHTTPError

api/client.go:153–155  ·  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

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

Callers 15

uploadAssetFunction · 0.92
deleteAssetFunction · 0.92
FetchRefSHAFunction · 0.92
fetchReleasePathFunction · 0.92
publishedReleaseExistsFunction · 0.92
downloadAssetFunction · 0.92
editReleaseFunction · 0.92
GetCurrentLoginFunction · 0.92
GetScopesFunction · 0.92
GetRawGistFileFunction · 0.92
createGistFunction · 0.92
fetchContentFunction · 0.92

Calls 1

handleResponseFunction · 0.85

Tested by 2