Felix Geisendörfer
f080de5380
Two bug fixes for process.mixin
Bug #1 occurred when trying to use process.mixin on a function and
produced a fatal exception.
Bug #2 occurred when trying to do a deep merge with an object containing
one or more objects with a nodeType property. In those cases the deep
copy for this part of the object was not performed and a shallow one was
performed instead.
Both of these bugs were artifacts of the jQuery.extend port.
15 years ago
Christopher Lenz
f8ba9c3bc9
Add http.Client.prototype.request()
Change the http.Client API so that it provides a single request() method
taking an optional parameter to specify the HTTP method (defaulting to
"GET"), instead of the five methods get(), head(), post(), del() and put().
15 years ago
Xavier Shay
34c02357ff
sys.inspect is totally more awesome now
- No longer relies on JSON.stringify, so it can output nulls and functions
- Handles circular references better
- Has tests
15 years ago
Ryan Dahl
8141448fe5
Don't use promises internally in DNS module
15 years ago
Ryan Dahl
c5d82380f4
Bugfix: Don't use chunked encoding for 1.0 requests.
http://groups.google.com/group/nodejs/browse_thread/thread/b2edb76691b1848c
15 years ago
Karl Guertin
4f679fd8d0
Dependency free assert module with unit tests
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
Michaeljohn Clement
485823f3e4
fixed HTTP duplicated header bug
added test case for HTTP duplicated header bug on keepalive
15 years ago
Rhys Jones
5b1a535cd8
Add HTTP client TLS support
15 years ago
choonkeat
44d5f212fe
Stat::Callback has 2 arguments for callback: current stat info and previous stat info
http://groups.google.com/group/nodejs/msg/f8e51a8e0c74bd85
15 years ago
Friedemann Altrock
0433d828cf
add process.umask()
15 years ago
Friedemann Altrock
2d54d664ff
Promises should not be able to be canceled more than once.
15 years ago
Felix Geisendörfer
27fcae738a
Reduce multipart memory footprint
Multipart parts kept the first chunk of data after their headers in
memory, even so that was no longer needed.
15 years ago
Rhys Jones
b6dda61249
Initial TLS support
15 years ago
Felix Geisendörfer
528c449901
Multipart improvements
Multipart parts now have a name and filename property. Those are the
same as:
part.headers['content-disposition'].name
part.headers['content-disposition'].filename
This patch also updates and improves the docs for the multipart module.
15 years ago
Ryan Dahl
0b441462ab
Speed up test-wait-ordering.js
15 years ago
Ryan Dahl
6cb0e0e5f5
Test runner should only run test-*.js
15 years ago
Ryan Dahl
6e6562e551
Fix stat handler test for macintosh
15 years ago
Ryan Dahl
8d2f9e83a4
Add process.watchFile() process.unwatchFile()
This is an interface to libev's ev_stat watcher.
15 years ago
Felix Geisendörfer
2b252acea4
Implement process "uncaughtException" event
This event can be used to overwrite the default exception mechanism which
reports the exception and kills the node process.
See google group post:
http://groups.google.com/group/nodejs/browse_thread/thread/9721dc3a2638446f
15 years ago
Felix Geisendörfer
bffee5eda4
Bugfix for sendBody() and chunked utf8 strings
Http expects chunked byte offsets and ignores the encoding specified in the
header. This patch makes node behave accordingly.
Bug report:
http://groups.google.com/group/nodejs/browse_thread/thread/ab701d49cb059317
15 years ago
Felix Geisendörfer
7371fcb312
Temporary function to determine str byte length
Will need a better place later on
15 years ago
Felix Geisendörfer
a021db151a
Bug fix for test-remote-module-loading.js
Fix bug that caused test-remote-module-loading.js
to use the installed version of the http library
rather than the build one.
15 years ago
Ryan Dahl
6c9ec1ac40
Use '127.0.0.1' instead of 'localhost' for keep-alive test
ab seems to have to problem resolving 'localhost' on Urban's computer.
15 years ago
Ryan Dahl
9cfa4fd7d6
Output stderr from test-remote-module-loading.js
There is a small problem with test-remote-module-loading.js.
When it starts a child "node", the child uses the default require.paths
instead unshifting the build lib/
15 years ago
Ryan Dahl
b833aa48e9
Add test to ensure the server can handle keep-alive
15 years ago
Ryan Dahl
51c1526b6a
Revert "Upgrade http parser, change node as needed."
Something is broken in how keep-alive is working. Reverting until I can fix
it.
This reverts commit b893859c34
.
15 years ago
Brandon Beacher
47fcf785ac
Added process.chdir()
15 years ago
Ryan Dahl
b3b3cfe007
Move memoryUsage() into C on Linux
15 years ago
Ryan Dahl
3a70129a9c
Add sys.memoryUsage()
15 years ago
Felix Geisendörfer
43d651daef
The return of relative module loading
15 years ago
Felix Geisendörfer
7069bee982
The return of absolute Module loading
15 years ago
Felix Geisendörfer
8fd472b9a1
The return of remote module loading
15 years ago
Ryan Dahl
7a2e784ad7
Module refactor - almost CommonJS compatible now
API change summary:
* require("/sys.js") becomes require("sys")
* require("circle.js") becomes require("./circle")
* process.path.join() becomes require("path").join()
15 years ago
Ryan Dahl
57890465bd
A few more node->process changes
15 years ago
Ryan Dahl
ad0a4cefb8
Namespace EVERYTHING under process; introduce GLOBAL
http://groups.google.com/group/nodejs/browse_thread/thread/1034fd2ad2cd93e8
15 years ago
Felix Geisendörfer
659954d842
The return of Promise.cancel() with some additional tests & docs
15 years ago
Ryan Dahl
c536728335
Move node.dns.* into /dns.js
15 years ago
Ryan Dahl
3d8b14e6f7
node.fs.* moved into "/posix.js"
use require("/posix.js") to access them.
15 years ago
Ryan Dahl
efe34f5023
Only allow a promise to fire once, remove promise.cancel()
promise.cancel() is due to return at some point.
15 years ago
Ryan Dahl
04e53cab90
Rename node.libraryPaths to require.paths
to be more inline with CommonJS.
15 years ago
Ryan Dahl
b893859c34
Upgrade http parser, change node as needed.
The latest version of http-parser is a bit more stringent EOF semantics.
15 years ago
Ryan Dahl
3456a16f71
Accept string representations of signals in node.kill and child.kill
15 years ago
Brandon Beacher
334d56d2be
Added external interface for signal handlers.
Also process.pid and node.kill().
15 years ago
Connor Dunn
2dbd0d3806
Add node.fs.sendfile()
15 years ago
Felix Geisendörfer
0dbf2d7792
Implemented Promise.timeout() and Promise.cancel()
15 years ago
Ryan Dahl
f623fd7658
Normalize HTTP headers.
"Content-Length" becomes "content-length".
15 years ago
Ryan Dahl
b76d853f0d
Fix test-signal-handler.js on macintosh - pause before exit.
15 years ago
Felix Geisendörfer
abbc624f52
Multipart test now uses a fixture instead of CURL
15 years ago
Brandon Beacher
f068251494
Added signal handler.
To be used internally. Needs an exposed interface.
15 years ago