Esempio n. 1
0
 def add_static(self, path, format_args, content_type, route):
     handler = handlers.StaticHandler(path, format_args, content_type)
     self.static.append((b"GET", str(route), handler))
Esempio n. 2
0
 def add_static(self, path, format_args, content_type, route, headers=None):
     if headers is None:
         headers = {}
     handler = handlers.StaticHandler(path, format_args, content_type, **headers)
     self.add_handler(b"GET", str(route), handler)