MCPcopy Index your code
hub / github.com/google/go-github / newResponse

Function newResponse

github/github.go:991–997  ·  view source on GitHub ↗

newResponse creates a new Response for the provided http.Response. r must not be nil.

(r *http.Response)

Source from the content-addressed store, hash-verified

989// newResponse creates a new Response for the provided http.Response.
990// r must not be nil.
991func newResponse(r *http.Response) *Response {
992 response := &Response{Response: r}
993 response.populatePageValues()
994 response.Rate = parseRate(r)
995 response.TokenExpiration = parseTokenExpiration(r)
996 return response
997}
998
999// populatePageValues parses the HTTP Link response headers and populates the
1000// various pagination link values in the Response.

Calls 3

populatePageValuesMethod · 0.95
parseRateFunction · 0.85
parseTokenExpirationFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…