MCPcopy Create free account
hub / github.com/EasyIME/PIME / fetch

Method fetch

python/python3/tornado/test/process_test.py:97–102  ·  view source on GitHub ↗
(url, fail_ok=False)

Source from the content-addressed store, hash-verified

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

Callers 15

test_digest_authMethod · 0.45
test_custom_reasonMethod · 0.45
test_simpleMethod · 0.45
test_fetch_segmentMethod · 0.45
test_openid_redirectMethod · 0.45
test_openid_get_userMethod · 0.45
test_oauth10_redirectMethod · 0.45
test_oauth10_get_userMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected