没有合适的资源?快使用搜索试试~ 我知道了~
http-parser-js:用于节点的纯JS HTTP解析器
共192个文件
js:177个
py:4个
md:4个
需积分: 15 0 下载量 152 浏览量
2021-05-12
09:06:11
上传
评论
收藏 221KB ZIP 举报
温馨提示
HTTP解析器 该库解析HTTP协议以获取请求和响应。 它的创建是为了替换http_parser.c因为从JS调用C ++函数在V8中确实很慢。 但是,现在在处理不满足严格的HTTP解析规则的旧服务时,具有更灵活/更容忍的HTTP解析器非常有用。 它打包为独立的npm模块。 要在节点中使用,请使用monkeypatch HTTPParser。 // Monkey patch before you require http for the first time. process . binding ( 'http_parser' ) . HTTPParser = require ( 'http-parser-js' ) . HTTPParser ; var http = require ( 'http' ) ; // ... 测验 只需运行npm test 。 测试是从node和msce
资源推荐
资源详情
资源评论
收起资源包目录
http-parser-js:用于节点的纯JS HTTP解析器 (192个子文件)
.gitignore 3KB
person.jpg 45KB
test-http-parser-durability.js 65KB
test-http-parser.js 16KB
common.js 13KB
http-parser.js 13KB
test-http-set-timeout-server.js 5KB
test-http-1.0.js 4KB
test-http-upgrade-server.js 4KB
test-http-mutable-headers.js 4KB
test-http-agent-keepalive.js 3KB
test-http-1.0-keep-alive.js 3KB
test-http-agent-destroyed-socket.js 3KB
test-http-pipeline-flood.js 3KB
test-http-client-race-2.js 3KB
test-http-server.js 3KB
test-http-connect.js 2KB
test-http-raw-headers.js 2KB
test-http-response-statuscode.js 2KB
test-http-set-trailers.js 2KB
test-http.js 2KB
test-http-server-multiheaders2.js 2KB
test-http-get-pipeline-problem.js 2KB
test-http-proxy.js 2KB
test-http-host-headers.js 2KB
test-http-chunk-problem.js 2KB
test-http-parser-bad-ref.js 2KB
test-http-invalidheaderfield2.js 2KB
test-http-content-length.js 2KB
test-http-abort-queued.js 2KB
bench.js 2KB
test-http-write-callbacks.js 2KB
test-http-connect-req-res.js 2KB
test-http-response-status-message.js 2KB
test-http-client-timeout-agent.js 2KB
test-http-keepalive-maxsockets.js 2KB
test-http-server-multiheaders.js 2KB
test-http-expect-continue.js 2KB
test-http-createConnection.js 2KB
test-http-chunked.js 2KB
test-http-wget.js 2KB
test-http-response-multiheaders.js 2KB
test-http-upgrade-agent.js 2KB
test-http-max-headers-count.js 2KB
test-http-url.parse-only-support-http-https-protocol.js 2KB
test-http-response-splitting.js 2KB
test-http-keep-alive-close-on-header.js 2KB
test-http-extra-response.js 2KB
test-http-destroyed-socket-write2.js 2KB
test-http-default-port.js 2KB
test-http-after-connect.js 2KB
test-http-should-keep-alive.js 2KB
test-http-full-response.js 2KB
test-http-set-cookies.js 2KB
test-http-incoming-pipelined-socket-destroy.js 2KB
test-http-upgrade-client.js 1KB
test-http-upgrade-client2.js 1KB
test-http-response-multi-content-length.js 1KB
test-http-zero-length-write.js 1KB
test-http-outgoing-finish.js 1KB
test-http-unix-socket.js 1KB
test-http-same-map.js 1KB
test-http-buffer-sanity.js 1KB
test-http-client-abort.js 1KB
test-http-keepalive-request.js 1KB
test-http-keepalive-client.js 1KB
test-http-pause.js 1KB
test-http-keep-alive.js 1KB
test-http-upgrade-advertise.js 1KB
test-http-client-default-headers-exist.js 1KB
test-http-agent-error-on-idle.js 1KB
test-http-res-write-end-dont-take-array.js 1KB
test-http-client-upload.js 1KB
bench-realworld.js 1KB
test-http-expect-handling.js 1KB
test-http-abort-client.js 1KB
test-http-client-race.js 1KB
test-http-chunked-304.js 1KB
test-http-write-head.js 1KB
test-http-request-methods.js 1KB
test-http-client-upload-buf.js 1KB
test-http-pipe-fs.js 1KB
test-http-invalidheaderfield.js 1KB
test-http-request-dont-override-options.js 1KB
test-http-response-no-headers.js 1KB
test-http-client-readable.js 1KB
test-http-url.parse-https.request.js 1KB
test-http-status-code.js 1KB
test-http-allow-req-after-204-res.js 1KB
test-http-agent-maxsockets.js 1KB
test-http-url.parse-basic.js 1KB
test-http-chunked-2.js 1KB
test-http-no-read-no-dump.js 1KB
test-http-client-agent.js 1KB
test-http-client-timeout-with-data.js 1KB
test-http-pipeline-regr-3508.js 1KB
test-http-blank-header.js 1KB
test-http-byteswritten.js 1008B
test-http-remove-header-stays-removed.js 1007B
test-http-client-parse-error.js 1000B
共 192 条
- 1
- 2
资源评论
笨猫猪
- 粉丝: 34
- 资源: 4732
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功