django使用流响应文件, 浏览器会有下载进度条, 可以点击进行暂停, 继续
后端
@action(detail=False, methods=['get'], schema=AutoDocSchema())
def get_big_files(self, request):
def file_iterator(file_path, start_byte=0, chunk_size=256):
with open(file_path, 'rb') as f:
f.seek(