4 Star 0 Fork 3

OpenHarmony / third_party_brotli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

third_party_brotli

Brotli简介

Brotli是基于LZ77算法,霍夫曼编码以及二阶上下文建模的开源数据压缩算法。 OpenHarmony引入该算法用于增强http的基础能力,使之可以处理使用brotli压缩算法的http请求。

源代码最新参考资料可以访问:brotli

引入版本openEuler-brotli-1.0.9

引入背景描述

当前HTTP模块不支持该算法,无法满足社区需求。

为OpenHarmony带来的价值

生态应用在使用OpenHarmony提供的HTTP协议栈时,可以使用brotli的高压缩比特性,节省流量。

如何使用

在发送http请求时header信息带上"Accept-Encoding:br",则服务端会以brotli压缩的方式响应请求。

brotli算法适用于静态网页数据、压缩阶段不敏感型、解压缩阶段敏感型等场景下的数据处理。

软件架构

LICENSE           #版权声明
v.1.0.9.tar.gz    #源码压缩包
install.sh        #解压缩以及打补丁脚本
patch             #补丁
BUILD.gn          #编译程序

安装教程

  1. 在使用该库的编译程序中加入依赖
deps = ["//third_party/brotli:brotli"]
  1. 预处理
./build/prebuilts_download.sh
  1. 编译
./build.sh --product-name rk3568 --ccache

编译生成物对应路径: 'out/rk3568/thirdparty/brotli/libbrotli.z.so'

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
MIT License Copyright (c) 2024 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Shell
MIT
取消

发行版

暂无发行版

OpenHarmony

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/openharmony/third_party_brotli.git
git@gitee.com:openharmony/third_party_brotli.git
openharmony
third_party_brotli
third_party_brotli
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891