可以流式搞:
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‘])
时间: 2025-01-18 13:50:58