supercell.requesthandler.RequestHandler(application, request, **kwargs)¶supercell request handler.
The only difference to the tornado.web.RequestHandler is an
adopted RequestHandler._execute_method() method that will handle
the consuming and providing of request inputs and results.
config¶Convinience method for accessing the environment.
decode_argument(value, name=None)¶Overwrite the default RequestHandler.decode_argument()
method in order to allow latin1 encoded URLs.
environment¶Convinience method for accessing the environment.
get_template(model)¶Method to determine which template to use for rendering the html.
logger¶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')
request_id¶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.