newbie
newbie

Reputation: 1505

tornado.web : Is there a method which is called after the actual handler method?

Tornado web framework seems to expose a method RequestHandler.prepare() which is called before the actual handler method. I was wondering if there's a similar method which is called after the handler ?

Upvotes: 1

Views: 1027

Answers (2)

newbie
newbie

Reputation: 1505

Starting Tornado 2.2 now you can override RequestHandler.on_finish for post-request processing.

Upvotes: 3

lbolla
lbolla

Reputation: 5411

You can overwrite RequestHandler.finish: see docs and source code.

Upvotes: 1

Related Questions