Ryan Dahl
9e976abad9
lint
14 years ago
Ali Farhadi
d81afcb3a6
Fixing bug in http request's end method.
14 years ago
Mikeal Rogers
8d37f80f4b
Expose agent in http and https client.
14 years ago
Ryan Dahl
76afea90cf
Fix test-http-exceptions
Agent: Each time an http req is sent to a socket, _cycle to try to dispatch
another. Problem became apparent in 4612b0 when we wait for connecting
sockets.
14 years ago
Ryan Dahl
4612b07604
Fix test-http-allow-req-after-204-res
Agent queue waits for connecting sockets.
14 years ago
Ryan Dahl
68f2aa2715
http: agent should cycle on close
14 years ago
Ryan Dahl
b9574b995f
Expose http.getAgent
14 years ago
Ryan Dahl
e65f6b4ce1
Initial pass at https client
14 years ago
Ryan Dahl
0866ecaf3f
...
14 years ago
Ryan Dahl
f465949516
hacky work around socket hangups on http requests
14 years ago
Ryan Dahl
d89454e5d4
Backport client 'upgrade' events
14 years ago
Ryan Dahl
4125822bed
all errors go to req object
14 years ago
Ryan Dahl
105c35b9fd
http.Client shims
14 years ago
Ryan Dahl
e576d4ec79
Add parser to agent
14 years ago
Ryan Dahl
60aea96f84
first pass at http refactor for TLS
14 years ago
Ryan Dahl
2957382991
Implement new stream method, destroySoon
Still missing on fs.WriteStream
14 years ago
Ryan Dahl
73f4ec51fd
hack for ending https connections
14 years ago
Ryan Dahl
94f8368cf9
First pass at new https server
14 years ago
Ryan Dahl
e4dd5cd6fd
NODE_DEBUG uses strings instead of bitflags
14 years ago
Ryan Dahl
a0159b4b29
Fix global leaks
14 years ago
Ryan Dahl
e232f6e735
more lint
14 years ago
Ryan Dahl
735b9d50a3
Simplify state transitions in http.Client
Fixes new bug shown in test-http-allow-req-after-204-res.js pointed out by
Tom Carden <tom.carden@gmail.com>.
14 years ago
Ryan Dahl
6057747e9e
Improve HTTP debug messages
14 years ago
Ryan Dahl
1db59afb75
style
14 years ago
Ryan Dahl
2320497992
Revert "Merge branch 'writev'"
This reverts commit cd9515efd9
, reversing
changes made to df46c8e698
.
Too slow. Needs more work.
14 years ago
Ryan Dahl
e1250a3333
Reset _eof on socket reuse
14 years ago
Ryan Dahl
dcc547d798
Dumper net.js integration
14 years ago
Ryan Dahl
df46c8e698
Rip out the old TLS implementation
14 years ago
Ryan Dahl
72aee8216c
Fix permissions on http.js
14 years ago
Ryan Dahl
2470d2ee92
allowHalfOpen disabled by default
Users too often would forget to add
socket.on('end', function () {
socket.end();
});
Which is a mistake. Therefore we default to this behavior and
only optionally let people handle the 'end' case themselves.
14 years ago
Mark Nottingham
b14eeb3c1e
Fix expect/continue keepalive
14 years ago
Ryan Dahl
8139bb24c1
Add destroy methods to HTTP messages
needs tests (particularly for pipeline situations)
14 years ago
Micheil Smith
0e1a581916
Removed deprecated methods from lib/http.js
14 years ago
Ryan Dahl
7e24a05cba
Fix test-http-buffer-sanity
14 years ago
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
14 years ago
Ryan Dahl
2944e03a03
Closer to a working pipe
14 years ago
Micheil Smith
1af52d28ca
Changing http.js to use the same stream.Stream creation as net.js
14 years ago
Ryan Dahl
bc695475b9
Add Stream base class with stream.pipe
14 years ago
Ryan Dahl
0003c701bc
expose parsers freelist
14 years ago
Joshaven Potter
3d4e4d8909
syntax fixes to pass jslint
14 years ago
Ryan Dahl
38f8665f3a
lib/http.js - nested loop stepping on variables of outer loop
Fixes #318 .
14 years ago
Mark Nottingham
d59512f6f4
Add support for handling Expect: 100-continue
HTTP/1.1 requests, either with an event (check_continue) or automatically, if no event handler is present.
Add client-side expect/continue support, tests.
Expound upon client requirements for expect/continue.
15 years ago
Ryan Dahl
265cda97d7
Fix zero length buffer bug for http res.end()
Reported by Kadir Pekel <kadirpekel@gmail.com>
14 years ago
Mark Nottingham
1b24fc6678
Consume HTTP trailing headers
14 years ago
Ryan Dahl
c3bc48d451
Move the http client's initParser() into prototype
14 years ago
Ryan Dahl
069d973d74
Remove require('buffer') in built-in libraries.
14 years ago
Fedor Indutny
5535aa3d51
Fixed 'upgrade' event for httpclient
onend and ondata was cleaning on parser end
14 years ago
Mikeal Rogers
cc1d61cbb3
HTTP: close connection on connection:close header.
rnewson found a good bug in keep-alive. we were only using the request
headers we send to enable/disable keep-alive but when the server sends
Connection: close we need to close down the connection regardless.
I wrote up a patch the Robert verified makes all his test client code work
now and I also added a new unittest for it.
14 years ago
Ryan Dahl
db73c71280
Pass correct message in HTTP client upgrade
Simplify and correct test.
Fix by Fedor Indutny.
14 years ago
Ryan Dahl
a63fd0fe56
Remove deprecation warnings in http module
14 years ago