示例#1
0
 def file_app(self, filepath):
     with open(filepath, 'rb') as fi:
         for b in httputil.file_source(fi):
             yield b
示例#2
0
 def on_body():
     with open(filename, 'rb') as fi:
         for d in httputil.file_source(fi):
             yield d
示例#3
0
文件: apps.py 项目: zhj149/webserver
 def on_body():
     with open(filename, 'rb') as fi:
         for d in httputil.file_source(fi):
             yield d