From 8a1f2d0bfcf8e766264d9f2186e6cedc410bbaf2 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Thu, 9 May 2019 15:27:10 -0400 Subject: [PATCH] doc: doc deprecate the legacy http parser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/27498 Reviewed-By: Rich Trott Reviewed-By: Anna Henningsen Reviewed-By: Tobias Nießen Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca Reviewed-By: Masashi Hirano Reviewed-By: Trivikram Kamat --- doc/api/deprecations.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index fc8d78187b2da3..e1614819bd6fe8 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2452,6 +2452,22 @@ Type: Documentation-only Module.createRequireFromPath() is deprecated. Please use [`module.createRequire()`][] instead. + +### DEP0131: Legacy HTTP parser + + +Type: Documentation-only + +The legacy HTTP parser, used by default in versions of Node.js prior to 12.0.0, +is deprecated. This deprecation applies to users of the +[`--http-parser=legacy`][] command-line flag. + +[`--http-parser=legacy`]: cli.html#cli_http_parser_library [`--pending-deprecation`]: cli.html#cli_pending_deprecation [`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size [`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array