Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.223.125.111
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
node_modules /
http-parser-js /
Delete
Unzip
Name
Size
Permission
Date
Action
CHANGELOG.md
337
B
-rw-r--r--
1985-10-26 08:15
LICENSE.md
5.06
KB
-rw-r--r--
1985-10-26 08:15
README.md
1.12
KB
-rw-r--r--
1985-10-26 08:15
http-parser.js
12.5
KB
-rw-r--r--
1985-10-26 08:15
package.json
1.76
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
# HTTP Parser This library parses HTTP protocol for requests and responses. It was created to replace `http_parser.c` since calling C++ function from JS is really slow in V8. This was further modified by Jimbly to be useable in parsing responses, specifically tested with the "request" module, and addresses issues such as corrupt HTTP headers, which would otherwise cause Node's parser to throw a fatal error (HPE_INVALID_HEADER_TOKEN). Jan Schär (jscissr) made some bigger changes and added tests. This fixed some bugs and added many missing features. This is packaged as a standalone npm module. To use in node, monkeypatch HTTPParser. ```js // Monkey patch before you require http for the first time. process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser; var http = require('http'); // ... ``` ## Testing Simply do `npm test`. The tests are copied from node and mscedex/io.js, with some modifcations. ## Status This should now be usable in any node application, it now supports (nearly) everything `http_parser.c` does while still being tolerant with corrupted headers. ## License MIT. See LICENSE.md