Pavel Lang
b38277be26
http: add response.headersSent property
Boolean property getter. True if headers was sent, false otherwise.
12 years ago
Adam Blackburn
d5e9895ce0
doc: put API table of contents in alphabetical order
12 years ago
Ben Noordhuis
84221fd1d6
events: add 'removeListener' event
13 years ago
Ben Noordhuis
c4aedf8a2a
doc: zlib: document flush() and reset() methods
12 years ago
Fedor Indutny
63ff449d87
crypto: bring module into modern age
Introduce 'buffer' encoding, allow returning and giving buffers as
arguments of 'crypto' routines.
Fix #3278
12 years ago
Robin Lee
a08271c7a8
doc: fix three typos
12 years ago
Ben Noordhuis
35607f3a2d
tls, https: validate server certificate by default
This commit changes the default value of the rejectUnauthorized option from
false to true.
What that means is that tls.connect(), https.get() and https.request() will
reject invalid server certificates from now on, including self-signed
certificates.
There is an escape hatch: if you set the NODE_TLS_REJECT_UNAUTHORIZED
environment variable to the literal string "0", node.js reverts to its
old behavior.
Fixes #3949 .
13 years ago
Ben Noordhuis
58a5bc1ec7
doc: fs: clarfify fs.watch() documentation
fs.watch() is implemented on all supported platforms but, depending on the
object being watched, doesn't always work reliably (or at all).
Fixes #4005 .
12 years ago
Ben Noordhuis
4870a4e3da
doc: http: expand request.headers documentation
12 years ago
isaacs
1c2982b94f
Update doc and test for sunos/solaris switch
12 years ago
Nathan Rajlich
dba47aefa5
docs: fix typo in Buffer#toJSON() docs
12 years ago
Nathan Rajlich
a4ef01df07
buffer: implement Buffer.prototype.toJSON()
Returns an Array-representation of the Buffer.
Closes #3905 .
12 years ago
Pooya Karimian
0087bc6370
cluster.worker description and examples ere missing from the top level of docs
13 years ago
Fedor Indutny
8e0c830cd0
tls: async session storage
13 years ago
Ben Noordhuis
790d651f0d
http: make http.ServerResponse emit 'end'
This used to be the internal 'finish' event. Make it public so API users will
know when the response has been sent completely.
Fixes #3855 .
12 years ago
Atsuya Takagi
9f57e422cf
doc: fix typo in api/cluster
12 years ago
Ankur Oberoi
a57d31595d
doc: fix grammar errors
13 years ago
Ben Noordhuis
e4cef1a083
doc: update assert.doesNotThrow() docs
It takes an optional "expected exception" argument that is not used meaningfully
but is nevertheless documented. Undocument it, it confuses casual readers of the
documentation.
Fixes #3935 .
13 years ago
isaacs
05282588e0
Buffer.isEncoding(enc)
Re: #3918
13 years ago
Nathan Rajlich
2d0c1da975
docs: fix syntax error in "https" example
13 years ago
koichik
752ac320ae
https: make https.get() accept a URL
https.get() now accepts either a URL (as a string) or an options object.
Refs #2859 .
Fixes #3882 .
13 years ago
Bert Belder
99ad52ecbe
doc: remote the "recommended modules" section
13 years ago
Ron Korving
2e1f2b535e
doc: fix typo in cluster example code
13 years ago
Ben Noordhuis
badbd1af27
tls: update default cipher list
Update the default cipher list from RC4-SHA:AES128-SHA:AES256-SHA
to ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH
in order to mitigate BEAST attacks.
The documentation suggested AES256-SHA but unfortunately that's a CBC cipher
and therefore susceptible to attacks.
Fixes #3900 .
13 years ago
Ben Noordhuis
7c75ca7182
doc: cluster: setupMaster() can be called only once
13 years ago
Ben Noordhuis
de32b38992
addon: remove node-waf, superseded by node-gyp
13 years ago
Kyle Robinson Young
4ef808ec0a
doc: remove unused util from child_process
13 years ago
Timothy J Fontaine
382f22f229
timers: implement setImmediate
13 years ago
Ben Noordhuis
4c150ca0d0
net: fix listen() regression, revert patches
This commit reverts the following commits (in reverse chronological order):
74d076c
errnoException must be done immediately
ddb02b9
net: support Server.listen(Pipe)
085a098
cluster: do not use internal server API
d138875
net: lazy listen on handler
Commit d138875
introduced a backwards incompatible change that broke the
simple/test-net-socket-timeout and simple/test-net-lazy-listen tests - it
defers listening on the target port until the `net.Server` instance has at
least one 'connection' event listener.
The other patches had to be reverted in order to revert d138875
.
Fixes #3832 .
13 years ago
isaacs
168a555780
fs: fix naming of truncate/ftruncate functions
For backwards compatibility, fs.truncate(<number>) will proxy to
fs.ftruncate.
Fix #3805
13 years ago
isaacs
0414e14702
doc: util.pump is deprecated. Use Stream.pipe
Conflicts:
doc/api/util.markdown
13 years ago
Kyle Robinson Young
bc7479d232
doc: fix typos in child_process
13 years ago
isaacs
4ff56aa15e
doc: util.pump is deprecated. Use Stream.pipe
13 years ago
Ben Noordhuis
3219616f43
util: mark util.pump() as deprecated
13 years ago
Andreas Madsen
d13887512e
net: lazy listen on handler
This allow the server to be shared without the need to handle connection
from master
13 years ago
Ben Noordhuis
9315377693
doc: improve cluster.workers documentation
13 years ago
Eugen Dueck
af699c47d1
doc: http: document res.write() `drain` return value
13 years ago
Bert Belder
9e2319f977
docs: remove unused require from example
Closes GH-3801
13 years ago
Ben Noordhuis
2eb6a62f4f
doc: document child_process.fork() limitation
13 years ago
isaacs
f8dab6acb6
doc: Remove timeout arg in child_process.fork
Fix #3784
13 years ago
Shigeki Ohtsu
5b37da2ac0
doc: fix domains example
Need `utf8` encoding for JSON.parse and fix to avoid JSON.parse error when only
one argument is passed in domain.bind
13 years ago
Joe Andaverde
20e12e4be3
events: make .listeners() return a copy
Make EventEmitter.listeners(event) return a copy of the listeners array instead
of the array itself.
Fixes #3442 .
13 years ago
Timothy J Fontaine
bdd1a740cb
add docs for socket/server/timer unref and ref
13 years ago
koichik
bc30c90af6
doc: remove duplicate section
Fixes #3750 .
13 years ago
Ben Noordhuis
e8af340557
doc: advise *strongly* against uncaughtException
13 years ago
isaacs
a52a44e072
doc: nextTick semantics and justification
13 years ago
Pavel Lang
ff14007573
Enable color customization of `util.inspect`
This is rewrite of #3701 and #3603 before.
This patch introduce `util.inspect.styles`
and `util.inspect.colors` objects, which enables customization
of color sequences.
13 years ago
Mike Morearty
19aa05fab8
doc: fix bug in child_process.spawn() sample code
13 years ago
Ivan Torres
8146f2e607
doc: clarify fs.symlink and fs.symlinkSync parameters
13 years ago
Justin Plock
fba1e48fae
doc: cluster: worker.pid is now worker.process.pid
13 years ago