From f8763bb077db2f0be74e353c0b4f9e353c0fffa8 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Thu, 7 Mar 2019 01:03:53 +0100 Subject: benchmark,doc,lib,test: capitalize comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt Reviewed-By: Michaƫl Zasso --- doc/api/http.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/api/http.md') diff --git a/doc/api/http.md b/doc/api/http.md index 8a9d9bafda..b06a28e331 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -373,7 +373,7 @@ proxy.on('connect', (req, cltSocket, head) => { // now that proxy is running proxy.listen(1337, '127.0.0.1', () => { - // make a request to a tunneling proxy + // Make a request to a tunneling proxy const options = { port: 1337, host: '127.0.0.1', @@ -387,7 +387,7 @@ proxy.listen(1337, '127.0.0.1', () => { req.on('connect', (res, socket, head) => { console.log('got connected!'); - // make a request over an HTTP tunnel + // Make a request over an HTTP tunnel socket.write('GET / HTTP/1.1\r\n' + 'Host: www.google.com:80\r\n' + 'Connection: close\r\n' + @@ -1313,7 +1313,7 @@ with any headers passed to [`response.writeHead()`][], with the headers passed to [`response.writeHead()`][] given precedence. ```js -// returns content-type = text/plain +// Returns content-type = text/plain const server = http.createServer((req, res) => { res.setHeader('Content-Type', 'text/html'); res.setHeader('X-Foo', 'bar'); @@ -1506,7 +1506,7 @@ desired with potential future retrieval and modification, use [`response.setHeader()`][] instead. ```js -// returns content-type = text/plain +// Returns content-type = text/plain const server = http.createServer((req, res) => { res.setHeader('Content-Type', 'text/html'); res.setHeader('X-Foo', 'bar'); @@ -1918,7 +1918,7 @@ http.get('http://nodejs.org/dist/index.json', (res) => { } if (error) { console.error(error.message); - // consume response data to free up memory + // Consume response data to free up memory res.resume(); return; } -- cgit v1.2.3