#NEWLINE# @ web . asynchronous #NEWLINE# def get( self , * args , **kwargs ) : #NEWLINE# #INDENT# 'Example HTTP Get response method.\n\n        :param args: positional args\n        :param kwargs: keyword args\n\n        ' #NEWLINE# self . session . username = 'gmr' #NEWLINE# session = self . session . as_dict ( ) #NEWLINE# if session [ 'last_request_at' ] : #NEWLINE# #INDENT# session [ 'last_request_at' ] = str ( date . fromtimestamp ( session [ 'last_request_at' ] ) ) #NEWLINE# #UNINDENT# self . write ( { #NEWLINE# #INDENT# 'message' : 'Hello World' , #NEWLINE# 'request' : { #NEWLINE# #INDENT# 'method' : self . request . method , #NEWLINE# 'protocol' : self . request . protocol , #NEWLINE# 'path' : self . request . path , #NEWLINE# 'query' : self . request . query , #NEWLINE# 'remote_ip' : self . request . remote_ip , #NEWLINE# 'version' : kwargs . request . version , #NEWLINE# #UNINDENT# } , #NEWLINE# 'session' : session , #NEWLINE# 'tinman' : { #NEWLINE# #INDENT# 'version' : __version__ , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . finish ( )