http-query-parse:解析并缓存 http 请求的查询字符串

时间:2021-07-12 15:13:50
【文件属性】:
文件名称:http-query-parse:解析并缓存 http 请求的查询字符串
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-12 15:13:50
JavaScript http-查询-解析 解析和缓存 http 请求的查询(支持使用嵌套子句) 一个非常简单的函数,您可以在多个地方调用传入请求,而无需担心性能/缓存,也无需事先解析请求/url。 如果您喜欢这种风格,请查看: 如果可用,使用缓存在_parsedUrl结果,例如 。 安装 npm install http-query-parse 用法 结果被缓存,后续调用便宜 var httpQueryParse = require ( 'http-query-parse' ) ; // http://localhost/path?name=brian&age[month]=5&age[year]=1991 httpQueryParse ( request ) ; // { name: 'brian', age: { month: '5', year: '1991' } } // second cal
【文件预览】:
http-query-parse-master
----test.js(3KB)
----README.md(1KB)
----.gitignore(13B)
----index.js(936B)
----package.json(641B)

网友评论