diff options
author | cjihrig <cjihrig@gmail.com> | 2018-12-05 19:59:12 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-12-20 13:15:07 -0500 |
commit | 9ac108d834539122625c85bb0a88f51a62b22d36 (patch) | |
tree | 10d0b7935aef5ffcb0405e5aa57e153d9d7d20c6 /doc | |
parent | f0e460968ef6e24f0882b111abd323f024055675 (diff) | |
download | android-node-v8-9ac108d834539122625c85bb0a88f51a62b22d36.tar.gz android-node-v8-9ac108d834539122625c85bb0a88f51a62b22d36.tar.bz2 android-node-v8-9ac108d834539122625c85bb0a88f51a62b22d36.zip |
http: add maxHeaderSize property
This commit exposes the value of --max-http-header-size
as a property of the http module.
PR-URL: https://github.com/nodejs/node/pull/24860
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/http.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/api/http.md b/doc/api/http.md index 63f4c58a85..4e56f4ad00 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1912,6 +1912,16 @@ added: v0.5.9 Global instance of `Agent` which is used as the default for all HTTP client requests. +## http.maxHeaderSize +<!-- YAML +added: REPLACEME +--> + +* {number} + +Read-only property specifying the maximum allowed size of HTTP headers in bytes. +Defaults to 8KB. Configurable using the [`--max-http-header-size`][] CLI option. + ## http.request(options[, callback]) ## http.request(url[, options][, callback]) <!-- YAML @@ -2097,6 +2107,7 @@ will be emitted in the following order: Note that setting the `timeout` option or using the `setTimeout()` function will not abort the request or do anything besides add a `'timeout'` event. +[`--max-http-header-size`]: cli.html#cli_max_http_header_size_size [`'checkContinue'`]: #http_event_checkcontinue [`'request'`]: #http_event_request [`'response'`]: #http_event_response |