MCPcopy
hub / github.com/openai/plugins / next_cursor

Function next_cursor

plugins/sentry/skills/sentry/scripts/sentry_api.py:43–51  ·  view source on GitHub ↗
(link_header)

Source from the content-addressed store, hash-verified

41
42
43def next_cursor(link_header):
44 if not link_header:
45 return None
46 for part in link_header.split(","):
47 if 'rel="next"' in part and 'results="true"' in part:
48 match = re.search(r'cursor="([^"]+)"', part)
49 if match:
50 return match.group(1)
51 return None
52
53
54def request_json(url, token, retries=1):

Callers 1

paged_getFunction · 0.85

Calls 1

groupMethod · 0.80

Tested by

no test coverage detected