mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[docs] fix syntax highlighting
This commit is contained in:
parent
38e6d7cd54
commit
da9de7034a
@ -47,6 +47,7 @@ In addition, every stage emits a corresponding event so introspection during the
|
||||
|
||||
#### Setup a basic stand-alone proxy server
|
||||
|
||||
```js
|
||||
var http = require('http'),
|
||||
caronte = require('caronte');
|
||||
//
|
||||
@ -62,6 +63,7 @@ http.createServer(function (req, res) {
|
||||
res.write('request successfully proxied!' + '\n' + JSON.stringify(req.headers, true, 2));
|
||||
res.end();
|
||||
}).listen(9000);
|
||||
```
|
||||
|
||||
#### Setup a stand-alone proxy server with custom server logic
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user