Nathan Rajlich
3524f41a27
Add docs for the type checking functions in `util.js`.
13 years ago
Nathan Rajlich
a6a04fb1ec
Add test case for the util.js type checking functions.
13 years ago
Nathan Rajlich
b8f3e18a5d
Export the type checking functions from `util.js`.
As per discussion at:
http://groups.google.com/group/nodejs-dev/browse_thread/thread/b08970166e4670cf
13 years ago
Ryan Dahl
b3ddb895d2
Don't compile in node_dtrace.cc when not supported
13 years ago
Zachary Scott
3961b5a131
docs: update email address
13 years ago
Zachary Scott
7fb8c7c37f
docs: update socket.io url
13 years ago
koichik
cbcaeedba9
tls: add address(), remoteAddress/remotePort
Fixes #758 .
Fixes #1055 .
13 years ago
koichik
0e8a55d2a2
tls: does not emit 'end' from EncryptedStream
de09168
and 4cdf9d4
breaks `test/pummel/test-https-large-response.js`.
It is never finished.
Fixes #1936 .
13 years ago
Ben Noordhuis
13871fa2f8
build: fix sunos gyp build, include platform file
13 years ago
Ben Noordhuis
15628f6735
sunos: don't use exceptions
Don't use exceptions in platform functions. Fix a resource leak
(leaked kstat handle) while we're at it.
13 years ago
Ben Noordhuis
d7dff34bad
gyp: support older bash versions
Older bash versions in `sh -c` mode don't parse `export FOO=42` constructs,
they bail out with a "FOO is not an identifier" error message.
This was fixed somewhere between bash 4.1.0 and 4.1.5 but let's support the
older versions anyway.
13 years ago
Ben Noordhuis
b8847e9ac6
uv: upgrade to 0cb2213
13 years ago
Igor Zinkovsky
0a5708c3e9
fix test-http-curl-chunk-problem.js and test-pipe-file-to-http.js on windows
13 years ago
Ben Noordhuis
680765abec
http: fix gcc 3.x build, don't use always_inline
13 years ago
Ben Noordhuis
dddfd0f8b8
test: spawn process.argv[0], not 'node'
'node' may or may not be on the path and may or may not be the version we are
running the test suite for.
13 years ago
Nathan Rajlich
58cb0fa639
Directly export the Stream constructor.
Also setting up a circular reference back to the
stream as `Stream.Stream`, for backwards-compatibility.
Fixes #1933
13 years ago
Ryan Dahl
239b3d62de
Remove resume and pause events
Too complex; unnecessary.
13 years ago
isaacs
4c5751ba97
Close #1929 zlib Respond to 'resume' events properly
13 years ago
Maciej Małecki
7ee29d1d5b
net: `Server.listen`, `Server.close` and `Socket.connect` return `this`
Just a syntactic sugar for doing, for example:
var server = net.createServer(function (c) {
c.end('goodbye, cruel world!\r\n');
server.close().on('close', function () {
console.log('really, goodbye!');
});
}).listen(1337);
Fixes #1922 .
13 years ago
koichik
00aa8935d7
docs: improvement fs, http and https
13 years ago
seebees
216570b5e1
Lint
13 years ago
seebees
a2eaddaa51
Documentation update
http.markdown
note options now align with url.parse
added note that hostname is preferred over host.
added auth
added not that setting an explicit Authorization header will override basic authentication with 'auth'
https.markdown
Made a link to http.request and noted that all http.request options are valid.
url.markdown
added path option
13 years ago
seebees
1ead20f274
remove auth from host
Fixes #1626
13 years ago
seebees
005d607aed
http.request(url.parse(x))
http2.js
protocols object to store defaults for http and https, and use as a switch for supported protocols.
options.hostname > options.host > 'localhost'
if I have an options.auth element and I do not have an Authorization header, I do basic auth.
http.request collapses to new ClientRequest since the defaults are handled by the protocol object
test-http-url.parse*
Fixes #1390
Conflicts:
lib/http2.js
13 years ago
seebees
be4576de7a
url.resolveObject(url.parse(x), y) == url.parse(url.resolve(x, y));
added a .path property = .pathname + .search for use with http.request
And tests to verify everything.
With the tests, I changed over to deepEqual, and I would note the comment on the test
['.//g', 'f:/a', 'f://g'], which I think is a fundamental problem
This supersedes pull 1596
13 years ago
koichik
ed744ecbfd
docs: remove #1914 from Changelog.
13 years ago
Nathan Rajlich
bdb9d09aef
Print out `undefined` on the REPL when returned.
util.inspect() has a special case for "undefined", so it's nice to be able to
distinguish visually that undefined is the result of an expression.
13 years ago
koichik
7e2d799328
docs: fix typo
13 years ago
Ryan Dahl
9b808c2d1b
Now working on v0.5.11
13 years ago
Ryan Dahl
220e61c1f6
Bump version to v0.5.10
13 years ago
Ben Noordhuis
dd6faa5adf
uv: upgrade to 179f475
13 years ago
Ben Noordhuis
ac379b3be1
net: bring back .setNoDelay() and .setKeepAlive()
13 years ago
Ben Noordhuis
401c073dd2
uv: upgrade to ec825ff
13 years ago
Ryan Dahl
493d3b9f7c
Merge remote branch 'origin/v0.4'
Conflicts:
ChangeLog
Makefile
deps/libev/wscript
doc/index.html
doc/template.html
lib/net.js
src/node_version.h
src/platform_cygwin.cc
test/pummel/test-net-write-callbacks.js
test/simple/test-buffer.js
13 years ago
Igor Zinkovsky
8498ee03bc
make simple\test-fs-symlink.js work on windows
13 years ago
Maciej Małecki
8f1ba251dd
test: #1899 - output in child process raises an exception
13 years ago
Ryan Dahl
d5a21a29f8
getaddrinfo returns ENOTFOUND for invalid domain names
change test-http-dns-error to reflect this.
13 years ago
Ryan Dahl
efa95c2718
Fix test-eio-race on Windows
13 years ago
Ben Noordhuis
3c3ec7b2d7
gyp: upgrade to r1081
13 years ago
Ryan Dahl
9b2335a356
Upgrade libuv to 7738306
13 years ago
Ryan Dahl
de09168e5a
Emit 'end' from crypto streams on close
Fixes test/simple/test-tls-peer-certificate.js on Windows
Patch from bnoordhuis.
See also 75a0cf970f
13 years ago
isaacs
2d02e6a992
Add useGlobal flag for standard node repl
13 years ago
isaacs
caf70f5e94
Revert "Don't use a separate context for the repl."
This reverts commit b70fed48a7
.
13 years ago
Ben Noordhuis
0ae98dfc66
build: fix wscript on solaris
os.path.exists() in python 2.5.2 returns false for symlinks.
13 years ago
Igor Zinkovsky
69b73f9cf0
make process.kill a no-op on windows
13 years ago
Ryan Dahl
fafb584881
Fix race condition in test-dgram-pingpong
13 years ago
Ben Noordhuis
84d0b1bcc5
http: improve http parser bindings
Speeds up HTTP benchmarks by 10% on average.
13 years ago
Ryan Dahl
c83dda89a4
dns.lookup uses cares_wrap::GetAddrInfo
13 years ago
Ryan Dahl
fb3cccc257
Upgrade libuv to 2c7e8bb
13 years ago
Bert Belder
00bbe958c4
Fix windows build
13 years ago