文件名称:http-header-value:HTTP标头值解析器
文件大小:52KB
文件格式:ZIP
更新时间:2024-04-09 07:46:59
http library typescript http-header TypeScript
HTTP标头值解析器 解析HTTP标头值: import { hthvParse , hthvParseCommented } from '@hatsy/http-header-value' ; const [ contentType ] = hthvParse ( 'text/html;charset=utf-8' ) ; contentType . v ; // text/html contentType . p . charset . v ; // utf-8 const [ product , sysInfo , platform , version ] = hthvParseCommented ( 'Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0' ) ; p
【文件预览】:
http-header-value-master
----tsconfig.spec.json(153B)
----rollup.config.js(2KB)
----.github()
--------workflows()
----tsconfig.main.json(99B)
----.eslintrc.cjs(653B)
----src()
--------custom()
--------index.ts(285B)
--------hthv-flatten.spec.ts(3KB)
--------node()
--------hthv-flatten.ts(3KB)
--------impl()
--------spec()
--------hthv-item.ts(4KB)
--------parser()
--------hthv-quote.ts(1KB)
--------hthv-escape.spec.ts(2KB)
--------hthv-delimiter.ts(2KB)
--------hthv-parse.spec.ts(14KB)
--------hthv-escape.ts(2KB)
--------hthv-parse.ts(1KB)
--------hthv-quote.spec.ts(1KB)
--------hthv-parser.ts(3KB)
--------headers()
----node()
--------package.json(127B)
----.npmignore(339B)
----typedoc.json(196B)
----tsconfig.json(590B)
----jest.config.cjs(799B)
----LICENSE(1KB)
----README.md(13KB)
----.editorconfig(316B)
----.gitignore(339B)
----headers()
--------package.json(133B)
----package.json(2KB)