@@ -162,7 +162,7 @@ the tests subdirectory.
162162#### Setup a basic stand-alone proxy server
163163
164164``` js
165- import * as http from " http" ;
165+ import * as http from " node: http" ;
166166import { createProxyServer } from " http-proxy-3" ;
167167
168168// Create your proxy server and set the target in the options.
@@ -192,7 +192,7 @@ This example shows how you can proxy a request using your own HTTP server
192192and also you can put your own logic to handle the request.
193193
194194``` js
195- import * as http from " http" ;
195+ import * as http from " node: http" ;
196196import { createProxyServer } from " http-proxy-3" ;
197197
198198// Create a proxy server with custom application logic
@@ -219,7 +219,7 @@ This example shows how you can proxy a request using your own HTTP server that
219219modifies the outgoing proxy request by adding a special header.
220220
221221``` js
222- import * as http from " http" ;
222+ import * as http from " node: http" ;
223223import { createProxyServer } from " http-proxy-3" ;
224224
225225// Create a proxy server with custom application logic
@@ -261,7 +261,7 @@ Sometimes when you have received a HTML/XML document from the server of origin y
261261#### Setup a stand-alone proxy server with latency
262262
263263``` js
264- import * as http from " http" ;
264+ import * as http from " node: http" ;
265265import { createProxyServer } from " http-proxy-3" ;
266266
267267// Create a proxy server with latency
@@ -372,7 +372,7 @@ httpProxy
372372Also you can proxy the websocket requests just calling the ` ws(req, socket, head) ` method.
373373
374374``` js
375- import * as http from " http" ;
375+ import * as http from " node: http" ;
376376import { createProxyServer } from " http-proxy-3" ;
377377
378378// Setup our server to proxy standard HTTP requests
0 commit comments