summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorArtur Cistov <artchistov@gmail.com>2013-02-15 22:21:48 +0000
committerChris Dickinson <christopher.s.dickinson@gmail.com>2014-11-17 15:35:00 -0800
commitadc0206de9a405cd904fb79bf4db027143f82682 (patch)
tree8a73e6848a922cc4fde1dd3db4b5ba5a2d3ea166 /doc/api
parent0fef2500900aa115271b456c76633ce47765c5d8 (diff)
downloadnode-new-adc0206de9a405cd904fb79bf4db027143f82682.tar.gz
doc: fix typos in http.markdown
PR-URL: https://github.com/joyent/node/pull/4784 Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/http.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/http.markdown b/doc/api/http.markdown
index 827bba6263..8b32cf59f4 100644
--- a/doc/api/http.markdown
+++ b/doc/api/http.markdown
@@ -155,7 +155,7 @@ sent to the server on that socket.
`function (exception, socket) { }`
-If a client connection emits an 'error' event - it will forwarded here.
+If a client connection emits an 'error' event, it will be forwarded here.
`socket` is the `net.Socket` object that the error originated from.
@@ -295,7 +295,7 @@ be called before [response.end()][] is called.
If you call [response.write()][] or [response.end()][] before calling this, the
implicit/mutable headers will be calculated and call this function for you.
-Note: that Content-Length is given in bytes not characters. The above example
+Note that Content-Length is given in bytes not characters. The above example
works because the string `'hello world'` contains only single byte characters.
If the body contains higher coded characters then `Buffer.byteLength()`
should be used to determine the number of bytes in a given encoding.
@@ -412,7 +412,7 @@ first chunk of body.
Returns `true` if the entire data was flushed successfully to the kernel
buffer. Returns `false` if all or part of the data was queued in user memory.
-`'drain'` will be emitted when the buffer is again free.
+`'drain'` will be emitted when the buffer is free again.
### response.addTrailers(headers)
@@ -921,7 +921,7 @@ following additional events, methods, and properties.
`function () { }`
-Indicates that the underlaying connection was closed.
+Indicates that the underlying connection was closed.
Just like `'end'`, this event occurs only once per response.
### message.httpVersion