views.py 文件源码

python
阅读 87 收藏 0 点赞 0 评论 0

项目:duckpond 作者: alexmilowski 项目源码 文件源码
def home(name,path):
   proxies = app.config.get('PROXIES')
   if proxies is None:
      abort(404)
   base = proxies.get(name)
   if base is None:
      abort(404)
   req = requests.get(base + path, stream = True)
   return Response(stream_with_context(req.iter_content()), content_type = req.headers['content-type'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号