示例#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))
示例#2
0
文件: serve.py 项目: xrr0520/servo
 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)