Ryan Dahl
173a8c9842
Disable dns and fs-sendfile tests.
15 years ago
Blaine Cook
cd6397cc45
Add support for MX, TXT, and SRV records in DNS module.
15 years ago
Ryan Dahl
8141448fe5
Don't use promises internally in DNS module
15 years ago
Felix Geisendörfer
530328f12b
CommonJS testing for node.js
Refactored test suite to use the assert module for testing rather than
mjsunit.
15 years ago
Felix Geisendörfer
8fd472b9a1
The return of remote module loading
15 years ago
Ryan Dahl
57890465bd
A few more node->process changes
15 years ago
Ryan Dahl
c536728335
Move node.dns.* into /dns.js
15 years ago
Ryan Dahl
8185e1fd25
Remove include() add node.mixin()
include() should not be used by libraries because it will pollute the global
namespace. To discourage this behavior and bring Node more in-line with
the current CommonJS module system, include() is removed.
Small scripts like unit tests often times do want to pollute the global
namespace for ease. To avoid the boiler plate code of
var x = require("/x.js");
var foo = x.foo;
var bar = x.bar;
The function node.mixin() is stolen from jQuery's jQuery.extend. So that it
can be written:
node.mixin(require("/x.js"));
Reference:
http://docs.jquery.com/Utilities/jQuery.extend
http://groups.google.com/group/nodejs/browse_thread/thread/f9ac83e5c11e7e87
15 years ago
Ryan Dahl
f6657c3c9d
Move http library to /http.js
15 years ago
Ryan Dahl
c8b143bf30
Absolute path names for require() refer to node.libraryPaths
15 years ago
Ryan
316e2833f0
Use flat object instead of array-of-arrays for HTTP headers.
E.G. { "Content-Length": 10, "Content-Type": "text/html" } instead of
[["Content-Length", 10], ["Content-Type", "text/html"]].
The main reason for this change is object-creation efficiency.
This still needs testing and some further changes (like when receiving
multiple header lines with the same field-name, they are concatenated with a
comma but some headers ("Content-Length") should not be concatenated ; the
new header line should replace the old value).
Various thoughts on this subject:
http://groups.google.com/group/nodejs/browse_thread/thread/9a67bb32706d9efc#
http://four.livejournal.com/979640.html
http://mail.gnome.org/archives/libsoup-list/2009-March/msg00015.html
16 years ago
Ryan
dd5ae3183b
Enable test-tcp-many-clients.
16 years ago
Ryan
e111ccc014
Add Felix Geisendörfer's HTTP stress test.
Does not pass on Macintosh and FreeBSD.
16 years ago
Ryan
41d89f611f
Add DNS API.
Missing functional tests. I'm not sure how to do tests because I don't want
to rely on the fact that users have an internet connection.
16 years ago
Ryan
d41197e02c
Disable test-tcp-many-clients.js. It's broken on macintosh - don't want to fix right now.
16 years ago