MCPcopy Create free account
hub / github.com/cloudflare/cloudflared / send_request

Function send_request

component-tests/test_tail.py:184–188  ·  view source on GitHub ↗
(url, headers={})

Source from the content-addressed store, hash-verified

182
183@retry(stop_max_attempt_number=MAX_RETRIES, wait_fixed=BACKOFF_SECS * 1000)
184def send_request(url, headers={}):
185 with requests.Session() as s:
186 resp = s.get(url, timeout=BACKOFF_SECS, headers=headers)
187 assert resp.status_code == 200, f"{url} returned {resp}"
188 return resp.status_code == 200

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…