正在研究django项目,当他们通过和api调用请求某些特定数据时,它充当其他服务器的分发服务器,这些数据是JSON形式并且非常大.所以我想我有什么方法可以设置我的DRF APIView响应来为输出的JSON响应提供内容编码的gzip设置,以便在被其他服务器使用时减少内容的大小.
目前我的应用程序正在使用nginx作为代理在gunicorn上运行.
python django json http django-rest-framework
django ×1
django-rest-framework ×1
http ×1
json ×1
python ×1