MCPcopy
hub / github.com/tornadoweb/tornado / fetch

Method fetch

tornado/test/process_test.py:96–101  ·  view source on GitHub ↗
(url, fail_ok=False)

Source from the content-addressed store, hash-verified

94 client = HTTPClient(SimpleAsyncHTTPClient)
95
96 def fetch(url, fail_ok=False):
97 try:
98 return client.fetch(get_url(url))
99 except HTTPError as e:
100 if not (fail_ok and e.code == 599):
101 raise
102
103 # Make two processes exit abnormally
104 fetch("/?exit=2", fail_ok=True)

Callers 15

test_digest_authMethod · 0.45
test_custom_reasonMethod · 0.45
test_reuse_certsMethod · 0.45
test_simpleMethod · 0.45
test_simpleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected