# http-request-content-encoding **Repository Path**: zkc/http-request-content-encoding ## Basic Information - **Project Name**: http-request-content-encoding - **Description**: HTTP请求内容压缩 - **Primary Language**: Lua - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-04-29 - **Last Updated**: 2022-06-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # http-request-content-encoding #### 介绍 HTTP请求内容压缩 lua实现+php实现 #### 参考 [如何压缩 HTTP 请求正文](https://imququ.com/post/how-to-compress-http-request-body.html) [Nginx与Gzip请求--火丁笔记](https://blog.huoding.com/2013/09/02/283) #### 设置 1. 引入zlib https://luapower.com/zlib 下载 [master](https://github.com/luapower/zlib) 中bin下已编译好的库比较多 2. 服务器需要安装libz.so 即 zlib `yum install -y zlib` 3. nginx.conf http段增加 `lua_package_path "/usr/local/openresty/lualib/zlib/?.lua;;";`