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

Method get

tornado/test/auth_test.py:222–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

220class TwitterClientLoginGenCoroutineHandler(TwitterClientHandler):
221 @gen.coroutine
222 def get(self):
223 if self.get_argument("oauth_token", None):
224 user = yield self.get_authenticated_user()
225 self.finish(user)
226 else:
227 # New style: with @gen.coroutine the result must be yielded
228 # or else the request will be auto-finished too soon.
229 yield self.authorize_redirect()
230
231
232class TwitterClientShowUserHandler(TwitterClientHandler):

Callers

nothing calls this directly

Calls 4

get_argumentMethod · 0.80
finishMethod · 0.45
authorize_redirectMethod · 0.45

Tested by

no test coverage detected