https://github.com/issue9/qheader
解析报 quality factor 报头的内容
https://github.com/issue9/qheader
accept accept-encoding accept-language http-header-parser quality-factor-header
Last synced: 1 day ago
JSON representation
解析报 quality factor 报头的内容
- Host: GitHub
- URL: https://github.com/issue9/qheader
- Owner: issue9
- License: mit
- Created: 2019-12-28T15:33:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T03:21:51.000Z (almost 2 years ago)
- Last Synced: 2025-08-14T23:28:54.064Z (5 months ago)
- Topics: accept, accept-encoding, accept-language, http-header-parser, quality-factor-header
- Language: Go
- Homepage: https://pkg.go.dev/github.com/issue9/qheader
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
qheader
[](https://github.com/issue9/qheader/actions?query=workflow%3AGo)
[](https://opensource.org/licenses/MIT)
[](https://codecov.io/gh/issue9/qheader)
[](https://pkg.go.dev/github.com/issue9/qheader)
======
解析报 quality factor 报头的内容,诸如 Accept、Accept-Charset 等报头。
```go
accepts := qheader.AcceptEncoding("gzip,compress;q=0.9,*;q=0.5,br")
// 返回 br,gzip,compress,* 的顺序
```
安装
----
```shell
go get github.com/issue9/qheader
```
版权
----
本项目源码采用 [MIT](https://opensource.org/licenses/MIT) 开源授权许可证,完整的授权说明可在 [LICENSE](LICENSE) 文件中找到。