Ryan Dahl
30b700ee22
Move watchFile into fs module
15 years ago
Ryan Dahl
810882c1ad
Move 'fs' module out of src/node.js into its own file
15 years ago
Ryan Dahl
16e32c8fd9
Allow for net reconnects
15 years ago
Benjamin Thomas
de1521413e
Make the output of sys.inspect a lot more compact.
See:
http://groups.google.com/group/nodejs/browse_thread/thread/ac060521e27fef65
By default now, sys.inspect doesn't recurse more than two times. Pass
in null as the third parameter to make it recurse indefinitely.
15 years ago
Benjamin Thomas
a2714be8b5
Add optional third argument sys.inpect to indicate how many times you want it to recurse
15 years ago
Benjamin Thomas
b1b84960ce
Rename writeHeader to writeHead
15 years ago
Ryan Dahl
b8dee2eb20
camel case variables in url module
15 years ago
Ryan Dahl
12d78cd1df
Rename sendHeader to writeHeader; allow reasonPhrase
15 years ago
Ryan Dahl
c094dda53c
Move errors for readPause and readResume
15 years ago
Ryan Dahl
5fbc750db7
multipart no longer depends on Promise
15 years ago
Ryan Dahl
de7016eac5
sys.exec() no longer uses Promise
15 years ago
Ryan Dahl
c04b679e12
'dns' no longer uses Promise
15 years ago
Ryan Dahl
d0f2d465aa
http.cat no longer uses Promise
15 years ago
Ryan Dahl
5013bf1781
API: OutgoingMessage.prototype.finish() renamed to close()
15 years ago
Tim Caswell
6115df6338
File API tweaks
- Rename fs.cat to fs.readFile
- Move file.write to fs.writeFile
- Allow strings for the flag argument to fs.open
("r", "r+", "w", "w+", "a", "a+")
- Remove the unused 'File' module / class
15 years ago
Ryan Dahl
ae85d9af97
API: Make request/response object closer to stream interface
- sendBody() renamed to write()
- 'body' event renamed to 'data'
- 'complete' event renamed to 'end'
15 years ago
Ryan Dahl
23cf502db7
API: connection.send() renamed to connection.write()
15 years ago
Mark Hansen
98e61db216
sys.inspect(Date) now shows the date value
15 years ago
visionmedia
9c6263bff8
Added multiple arg support for sys.puts(), print(), etc.
15 years ago
Ryan Dahl
b82ef28d9d
Rename 'posix' module to 'fs'
15 years ago
Ryan Dahl
bc17d94a0a
API: tcp events 'receive' to 'data', 'eof' to 'end'
No deprecation messages. Not sure how...
15 years ago
Tim Caswell
3aca908db3
Document the changes to sys.inspect's API.
It now takes an optional showHidden argument that shows hidden/non-enumerable properties of objects.
Also cleanup the lib/sys.js file a bit.
15 years ago
Tim Caswell
e33c66654a
Rewrite sys.inspect to be more reliable and handle crazy edge cases.
15 years ago
isaacs
3adcdfc2e1
A rewrite of multipart library.
1. Support streaming in the simple case. Put huge warnings around the
buffering API.
2. Support nested multipart messages.
3. Support various kinds of multipart messages, including all the various
absurdities of multipart email messages.
4. Error out on various invalid types of data that might come through.
5. Gracefully several edge cases that occur when the chunk size is smaller
than the boundary length, or cuts into the \r\n, etc.
6. Provide both positive and negative tests.
15 years ago
Ryan Dahl
b6edae5671
Expose errno exception creation
15 years ago
Ryan Dahl
979f5889d5
Optimize: Use callbacks instead of events in net2
15 years ago
Ryan Dahl
d979a7993e
Wrap syscalls with try-catch
15 years ago
Aaron Heckmann
8f52142116
look for -1 instead of false returned from string.indexOf
15 years ago
Ryan Dahl
33509bdbe5
eof -> end
15 years ago
Ryan Dahl
4f56d8ae24
Rename Buffer.utf8Length to Buffer.utf8ByteLength
15 years ago
Felix Geisendörfer
ac2abe5b1e
Bugfix: Handle Content-Type headers with charset
Some HTTP clients include a charset parameter in the Content-Type, e.g:
multipart/form-data; charset=utf-8; boundary=0xKhTmLbOuNdArY
This patch makes the multipart parser more forgiving towards unexpected
information included in the Content-Type header.
15 years ago
Ryan Dahl
344243db92
Simplify send buffer logic
15 years ago
Ryan Dahl
aadce8e1a9
Optimize, clean up net2 net.js and http2.js
15 years ago
Ryan Dahl
c328f3e6c6
Add new http server library
15 years ago
Ryan Dahl
1bb52947e0
Forgot to include fix from HTTP client bug ( 30b0522
)
15 years ago
Ryan Dahl
824a2fd1c6
Clean up a few bugs in net.js
15 years ago
Ryan Dahl
741e3fa91b
HTTP works somewhat on net2 now
However it's not working very well: Hitting a 'hello world' server with many
requests (ab -t 60 -c 10) will cause it to crash with the following error.
Obtained 3 stack frames.
./node(_Z11print_tracev+0x1c) [0x80d1b3c]
./node(_ZN4node6Parser7ExecuteERKN2v89ArgumentsE+0x69) [0x80d3759]
./node [0x811f44b]
TypeError: Already parsing a buffer
at Socket.<anonymous> (/home/ryan/projects/node/lib/http2.js:393:20)
at IOWatcher.callback (/home/ryan/projects/node/lib/net.js:81:12)
at node.js:985:9
at node.js:989:1
15 years ago
Blaine Cook
cd6397cc45
Add support for MX, TXT, and SRV records in DNS module.
15 years ago
Ryan Dahl
c420c89dbd
Make assert.AssertionError instance of Error
15 years ago
cloudhead
3669c75f4d
removed inline require call for querystring
15 years ago
Michaeljohn Clement
4e16e386fe
set default encoding in sendBody
15 years ago
Ryan Dahl
8abeffa9ea
Add process.nextTick()
This is a replacement for the common hack:
setTimeout(cb, 0);
It's much more efficient.
15 years ago
Ryan Dahl
70293a43c9
API: Move Promise and EventEmitter into 'events' module
15 years ago
Ryan Dahl
df59f06734
recvMsg shouldn't return array for efficiency.
15 years ago
David Sklar
a876df6c71
Initial take on passing FDs between processes
15 years ago
Benjamin Thomas
947c577c0d
Fix bug in the url module's url_parse method if 'parseQueryString' is true
15 years ago
Felix Geisendörfer
f86c1783b7
Handle bad requests in simplified parser API
15 years ago
Felix Geisendörfer
d9a81374b2
Throw exception for invalid multipart streams
When using the multipart parser with an regular http request, the
parser did not complain and just never finished.
15 years ago
elliottcable
52f088b966
Providing the option for a repl-printer other than sys.p
15 years ago
visionmedia
a650138ebf
Moved help msg to node-repl
15 years ago