supercell request handler.
The only difference to the tornado.web.RequestHandler is an adopted RequestHandler._execute() method that will handle the consuming and providing of request inputs and results.
Convinience method for accessing the environment.
Overwrite the default RequestHandler.decode_argument() method in order to allow latin1 encoded URLs.
Convinience method for accessing the environment.
Method to determine which template to use for rendering the html.
Use this property to write to the log files.
In a request handler you would simply log messages like this:
def get(self):
self.logger.info('A test')
Check for a consumer and optionally add the cache headers.
Return a unique id per request. Collisions are allowed but should should not occur within a 10 minutes time window.
The current implementation is based on a timestamp in milliseconds substracted by a large number to make the id smaller.