diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-01-21 17:11:47 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-01-31 16:00:51 +0100 |
commit | 312414662b678d95bee2904348e053728993b97a (patch) | |
tree | c447bed7576b9e58a8b092b7dc988afe9a2d6015 /doc/api/http2.md | |
parent | 332b56c82b0c4e4b4608db106b1ed75532202dda (diff) | |
download | android-node-v8-312414662b678d95bee2904348e053728993b97a.tar.gz android-node-v8-312414662b678d95bee2904348e053728993b97a.tar.bz2 android-node-v8-312414662b678d95bee2904348e053728993b97a.zip |
url: expose the WHATWG URL API globally
Install URL and URLSearchParams on the global object, like they can be
found in browser environments.
PR-URL: https://github.com/nodejs/node/pull/18281
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r-- | doc/api/http2.md | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md index 3ac7dd91e5..ab4fb03cb5 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2186,7 +2186,6 @@ An HTTP/2 CONNECT proxy: const http2 = require('http2'); const { NGHTTP2_REFUSED_STREAM } = http2.constants; const net = require('net'); -const { URL } = require('url'); const proxy = http2.createServer(); proxy.on('stream', (stream, headers) => { |