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

Method prepare

python/python3/tornado/test/httpclient_test.py:58–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56
57class RedirectHandler(RequestHandler):
58 def prepare(self):
59 self.write("redirects can have bodies too")
60 self.redirect(
61 self.get_argument("url"), status=int(self.get_argument("status", "302"))
62 )
63
64
65class RedirectWithoutLocationHandler(RequestHandler):

Callers

nothing calls this directly

Calls 3

redirectMethod · 0.80
get_argumentMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected