Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
337 bytes
|
Line | |
---|
1 | # HTTP Parser
|
---|
2 |
|
---|
3 | ## 0.4.4
|
---|
4 |
|
---|
5 | Made 'maxHeaderSize' configurable.
|
---|
6 |
|
---|
7 | ```js
|
---|
8 | // Monkey patch before you require http for the first time.
|
---|
9 | process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser;
|
---|
10 | require('http-parser-js').HTTPParser.maxHeaderSize = 1024 * 1024; // 1MB instead of 80kb
|
---|
11 |
|
---|
12 | var http = require('http');
|
---|
13 | // ...
|
---|
14 | ``` |
---|
Note:
See
TracBrowser
for help on using the repository browser.