可以流式搞:
req = requests.get(base_url + ‘/‘ + url, params=request.args, stream=True)
return Response(stream_with_context(req.iter_content()), content_type=req.headers[‘content-type‘])
时间: 2024-11-04 09:41:39