summaryrefslogtreecommitdiff
path: root/doc/api/http.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-07 01:03:53 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-10 00:44:40 +0100
commitf8763bb077db2f0be74e353c0b4f9e353c0fffa8 (patch)
treec73128074daa65d2e72e4d2a86a5b08059888144 /doc/api/http.md
parent01a5300f3f4f788a043f6b5fe72e2b7b641dfb6c (diff)
downloadandroid-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.tar.gz
android-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.tar.bz2
android-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.zip
benchmark,doc,lib,test: capitalize comments
PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'doc/api/http.md')
-rw-r--r--doc/api/http.md10
1 files changed, 5 insertions, 5 deletions
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;
}