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

Method get_app

tornado/test/curl_httpclient_test.py:87–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

85 self.http_client = self.create_client()
86
87 def get_app(self):
88 return Application(
89 [
90 ("/digest", DigestAuthHandler, {"username": "foo", "password": "bar"}),
91 (
92 "/digest_non_ascii",
93 DigestAuthHandler,
94 {"username": "foo", "password": "barユ£"},
95 ),
96 ("/custom_reason", CustomReasonHandler),
97 ("/custom_fail_reason", CustomFailReasonHandler),
98 ]
99 )
100
101 def create_client(self, **kwargs):
102 return CurlAsyncHTTPClient(

Callers

nothing calls this directly

Calls 1

ApplicationClass · 0.90

Tested by

no test coverage detected