MCPcopy Index your code
hub / github.com/cli/cli / findNextPage

Function findNextPage

pkg/cmd/run/shared/artifacts.go:79–86  ·  view source on GitHub ↗
(resp *http.Response)

Source from the content-addressed store, hash-verified

77var linkRE = regexp.MustCompile(`<([^>]+)>;\s*rel="([^"]+)"`)
78
79func findNextPage(resp *http.Response) string {
80 for _, m := range linkRE.FindAllStringSubmatch(resp.Header.Get("Link"), -1) {
81 if len(m) > 2 && m[2] == "next" {
82 return m[1]
83 }
84 }
85 return ""
86}

Callers 1

apiGetFunction · 0.70

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected