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

Method get

tornado/test/web_test.py:1812–1817  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1810class StatusReasonTest(SimpleHandlerTestCase):
1811 class Handler(RequestHandler):
1812 def get(self):
1813 reason = self.request.arguments.get("reason", [])
1814 raise HTTPError(
1815 int(self.get_argument("code")),
1816 reason=to_unicode(reason[0]) if reason else None,
1817 )
1818
1819 def get_http_client(self):
1820 # simple_httpclient only: curl doesn't expose the reason string

Callers

nothing calls this directly

Calls 4

HTTPErrorClass · 0.90
to_unicodeFunction · 0.90
get_argumentMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected