[docs] typos, typos everywhere...

This commit is contained in:
cronopio 2013-12-13 13:06:19 -05:00
parent 0393b5da99
commit 03880d8d06

View File

@ -86,7 +86,7 @@ http.createServer(function (req, res) {
#### Setup a stand-alone proxy server with custom server logic #### Setup a stand-alone proxy server with custom server logic
This example show how you can proxy a request using your own HTTP server This example show how you can proxy a request using your own HTTP server
and also you can put your own logic to hanlde the request. and also you can put your own logic to handle the request.
```js ```js
var http = require('http'), var http = require('http'),
@ -114,7 +114,7 @@ server.listen(5050);
#### Setup a stand-alone proxy server with latency #### Setup a stand-alone proxy server with latency
``` ```js
var http = require('http'), var http = require('http'),
httpProxy = require('http-proxy'); httpProxy = require('http-proxy');
@ -161,9 +161,6 @@ var proxy = httpProxy.createServer({
target:'http://localhost:9005' target:'http://localhost:9005'
}); });
//
// Tell the proxy to listen on port 8000
//
proxy.listen(8005); proxy.listen(8005);
// //
@ -180,7 +177,7 @@ proxy.on('error', function (err, req, res) {
// Listen for the `proxyRes` event on `proxy`. // Listen for the `proxyRes` event on `proxy`.
// //
proxy.on('proxyRes', function (res) { proxy.on('proxyRes', function (res) {
console.log('RAW Response from the target', res.headers); console.log('RAW Response from the target', JSON.stringify(res.headers, true, 2));
}); });
``` ```