package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Dec 28, 2019
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
README
¶
Documentation
¶
Package qheader 用于处理 quality factor 报头。
Header 表示 Header* 的报头元素
Parse 将报头内容解析为 []*Header,并对内容进行排序之后返回。
排序方式如下:
Q 值大的靠前,如果 Q 值相同,则全名的比带通配符的靠前,*/* 最后。
q 值为 0 的数据将被过滤,比如:
application/*;q=0.1,application/xml;q=0.1,text/html;q=0
其中的 text/html 不会被返回,application/xml 的优先级会高于 application/*
Source Files
¶
Click to show internal directories.
Click to hide internal directories.