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

Method get

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

Source from the content-addressed store, hash-verified

98
99 @gen.coroutine
100 def get(self):
101 if self.get_argument("oauth_token", None):
102 # Ensure that any exceptions are set on the returned Future,
103 # not simply thrown into the surrounding StackContext.
104 try:
105 yield self.get_authenticated_user()
106 except Exception as e:
107 self.set_status(503)
108 self.write("got exception: %s" % e)
109 else:
110 yield self.authorize_redirect()
111
112
113class OAuth1ClientRequestParametersHandler(RequestHandler, OAuthMixin):

Callers

nothing calls this directly

Calls 5

get_argumentMethod · 0.80
set_statusMethod · 0.80
writeMethod · 0.45
authorize_redirectMethod · 0.45

Tested by

no test coverage detected