Public Member Functions | |
def | prepare |
Definition at line 117 of file simple_httpclient_test.py.
Called at the beginning of a request before `get`/`post`/etc. Override this method to perform common initialization regardless of the request method. Asynchronous support: Decorate this method with `.gen.coroutine` or `.return_future` to make it asynchronous (the `asynchronous` decorator cannot be used on `prepare`). If this method returns a `.Future` execution will not proceed until the `.Future` is done. .. versionadded:: 3.1 Asynchronous support.
Reimplemented from tornado.web.RequestHandler.
Definition at line 118 of file simple_httpclient_test.py.