You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
337 B

4 years ago
  1. # HTTP Parser
  2. ## 0.4.4
  3. Made 'maxHeaderSize' configurable.
  4. ```js
  5. // Monkey patch before you require http for the first time.
  6. process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser;
  7. require('http-parser-js').HTTPParser.maxHeaderSize = 1024 * 1024; // 1MB instead of 80kb
  8. var http = require('http');
  9. // ...
  10. ```