We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
url.md
1 parent 975edf5 commit 760cafaCopy full SHA for 760cafa
doc/api/url.md
@@ -1169,7 +1169,7 @@ expected by the [`http.request()`][] and [`https.request()`][] APIs.
1169
import { urlToHttpOptions } from 'url';
1170
const myURL = new URL('https://a:b@測試?abc#foo');
1171
1172
-console.log(urlToHttpOptions(myUrl));
+console.log(urlToHttpOptions(myURL));
1173
/**
1174
{
1175
protocol: 'https:',
0 commit comments