code: def get(self, *args, **kwargs):
          
          self.session.username = 'gmr'
  
          session = self.session.as_dict()
          if session['last_request_at']:
              session['last_request_at'] = str(date.fromtimestamp(
                                               session['last_request_at']))
  
          # Send a JSON string for our test
          self.write({'message': 'Hello World',
                      'request': {'method': self.request.method,
                                  'protocol': self.request.protocol,
                                  'path': self.request.path,
                                  'query': self.request.query,
                                  'remote_ip': self.request.remote_ip,
                                  'version': self.request.version},
                      'session': session,
                      'tinman': {'version':  __version__}})
          self.finish()
docs: Example HTTP Get response method.
  
          :param args: positional args
          :param kwargs: keyword args