isaacs
836a06fc4f
Revert "http: make http.ServerResponse emit 'end'"
...
This reverts commit 790d651f0d
.
This makes Duplex streams unworkable, and would only ever be a special
case for HTTP responses, which is not ideal.
Intead, we're going to just bless the 'finish' event for all Writable
streams in 0.10
2012-10-03 17:40:14 -07:00
isaacs
ae40f1c438
Merge remote-tracking branch 'ry/v0.8' into v0.8-merge
...
Conflicts:
AUTHORS
ChangeLog
deps/openssl/openssl.gyp
deps/uv/src/unix/linux/linux-core.c
deps/uv/src/unix/process.c
deps/uv/src/unix/stream.c
deps/v8/src/arm/builtins-arm.cc
deps/v8/src/arm/code-stubs-arm.cc
deps/v8/src/arm/full-codegen-arm.cc
lib/tls.js
src/node_version.h
test/simple/test-http-client-timeout-agent.js
2012-09-28 09:47:48 -07:00
Pavel Lang
b38277be26
http: add response.headersSent property
...
Boolean property getter. True if headers was sent, false otherwise.
2012-09-28 02:57:01 +02:00
thewilli
33a5c8a814
http: handle multiple Proxy-Authenticate values
...
Just as the 'WWW-Authenticate' HTTP header the 'Proxy-Authenticate' header might
be received several times as well. Currently only one value is preserved. This
change allows to receive multiple values concatenated by space and comma.
2012-09-27 13:28:16 -07:00
thewilli
ac17dc1764
http: handle multiple Proxy-Authenticate values
...
Just as the 'WWW-Authenticate' HTTP header the 'Proxy-Authenticate' header might
be received several times as well. Currently only one value is preserved. This
change allows to receive multiple values concatenated by space and comma.
2012-09-27 01:11:00 +02:00
Nathan Rajlich
0f2ed2bc2c
http: make the client "res" object gets the same domain as "req"
...
Fixes #4046 .
2012-09-24 11:48:39 -07:00
isaacs
bb207c2827
Merge remote-tracking branch 'ry/v0.8' into master
...
Conflicts:
ChangeLog
src/node_version.h
test/simple/test-util-inspect.js
2012-09-12 15:13:07 -07:00
Frédéric Germain
451ff1540a
http: Remove timeout handler when data arrives
2012-09-12 09:50:06 -07:00
Ben Noordhuis
9a3521cb25
http: respect HTTP/1.0 TE header
...
A HTTP/1.0 client does not support 'Transfer-Encoding: chunked' unless it
explicitly requests it by sending a 'TE: chunked' header.
Before this commit, node.js always disabled chunked encoding for HTTP/1.0
clients. Now it will scan for the TE header and turn on chunked encoding if
requested and applicable.
Fixes #940 .
2012-09-08 21:43:57 +02:00
Ben Noordhuis
790d651f0d
http: make http.ServerResponse emit 'end'
...
This used to be the internal 'finish' event. Make it public so API users will
know when the response has been sent completely.
Fixes #3855 .
2012-09-04 22:07:48 +02:00
Brian White
c78678b081
http: bubble up parser errors to ClientRequest
...
Make parser errors bubble up to the ClientRequest instead of the underlying
net.Socket object.
Fixes #3776 .
2012-08-24 17:26:31 +02:00
isaacs
b0c0111b04
https: Use host header as effective servername
2012-07-25 13:38:43 -07:00
Brian White
e06b5d7af7
http: remove duplicate assignments
...
Closes GH-3754
2012-07-23 11:35:52 +02:00
Fedor Indutny
e43fe5c833
Revert "http/https: pass request to .createConnection()"
...
This reverts commit 53716eb0b5
.
2012-07-20 20:51:02 +04:00
Fedor Indutny
eb2ca10462
tls: veryify server's identity
2012-07-20 01:49:31 +04:00
Fedor Indutny
53716eb0b5
http/https: pass request to .createConnection()
...
It's useful for passing some additional options of request object to the
underlying API
2012-07-20 01:49:30 +04:00
isaacs
5b39929d47
Add --no-deprecation and --trace-deprecation flags
2012-06-21 12:05:33 -07:00
isaacs
260695afd0
http: Hush 'MUST NOT have a body' warnings to debug()
2012-06-21 12:05:33 -07:00
Andreas Madsen
1e0ce5d1bd
domain: the EventEmitter constructor is now always called in nodecore
2012-06-15 09:49:05 -07:00
Simon Sturmer
9a998d5e24
http: don't lowercase http req header until later
...
Don't lowercase the request header until we're in the _addHeaderLine method,
makes it easier to intercept the raw request headers.
2012-06-02 03:07:43 +02:00
Shigeki Ohtsu
f721d02c8a
http: fix duplicated variable declaration
2012-05-28 23:26:02 +02:00
Adam Malcontenti-Wilson
4099d1eeba
http: make http.get() accept a URL
...
http.get() now accepts either a URL (as a string) or an options object.
2012-05-16 16:43:18 +02:00
isaacs
643f00d3f9
Merge branch 'master' into v0.6-merge
...
Conflicts:
src/node.cc
2012-05-15 14:21:22 -07:00
isaacs
faa4d9ff5f
Re-apply http fixes from v0.6 branch properly
2012-05-15 14:19:46 -07:00
Ben Noordhuis
9ae6d8fee3
http: fix client request.end() EPIPE race
...
request.end() would sometimes try to write a zero-length buffer to the socket.
Don't do that, it triggers an unnecessary EPIPE when the other end has closed
the connection.
Fixes #3257 .
2012-05-15 22:05:36 +02:00
isaacs
5164ae3838
Merge remote-tracking branch 'ry/v0.6' into v0.6-merge
...
Conflicts:
ChangeLog
deps/uv/include/uv-private/uv-unix.h
deps/uv/src/unix/core.c
deps/uv/src/unix/sunos.c
deps/v8/src/runtime.cc
doc/api/crypto.markdown
lib/http.js
src/node_version.h
test/gc/test-http-client-timeout.js
wscript
2012-05-15 11:37:34 -07:00
isaacs
01103d077b
Guard against emitting 'end' twice on http responses
...
Conflicts:
lib/http.js
2012-05-15 11:29:32 -07:00
isaacs
a98e845516
Break up huge function in ClientRequest.onSocket
...
Conflicts:
lib/http.js
2012-05-15 11:26:47 -07:00
isaacs
14a5b45c06
Guard against emitting 'end' twice on http responses
2012-05-14 17:22:45 -07:00
isaacs
07d8a4650e
Break up huge function in ClientRequest.onSocket
2012-05-11 15:01:38 -07:00
isaacs
07be9fc3a6
Merge remote-tracking branch 'ry/v0.6' into v0.6-merge
...
Conflicts:
Makefile
lib/zlib.js
src/node.cc
src/node.js
2012-05-09 15:12:13 -07:00
isaacs
8c758e127c
Don't destroy on timeout
2012-05-07 14:19:16 -07:00
isaacs
b4fbf6d275
Fix #3231 . Don't try to emit error on a null'ed req object
2012-05-07 14:17:17 -07:00
Mark Cavage
5871c81181
Add HTTP Status codes from RFC 6585
...
See: http://tools.ietf.org/html/rfc6585
2012-05-04 21:51:24 -07:00
isaacs
cd8f82c007
Fix incorrect merge choices
2012-05-04 17:24:21 -07:00
isaacs
1de43149bb
http: Clean up parser usage
...
Move parsers.free(parser) to a single function, which also
nulls all of the various references we hang on them.
Also, move the parser.on* methods out of the closure, so that
there's one shared definition of each, instead of re-defining
for each parser in a spot where they can close over references
to other request-specific objects.
Conflicts:
lib/http.js
2012-05-04 14:58:30 -07:00
isaacs
0abe42a0f4
http: .once() usage in setTimeout
2012-05-04 14:31:08 -07:00
isaacs
e4dd8dc28e
http leak: Null links from parser to req/res
2012-05-04 14:27:47 -07:00
vvo
5eac8d6739
Fix #3179 HTTP memory leak using ClientRequest.
2012-05-04 14:27:41 -07:00
isaacs
2f93eb6102
http client: Destroy on timeout
2012-05-04 14:27:35 -07:00
isaacs
0a414f4caa
http: Remove socket ondata/onend in parser cleanup
2012-05-04 14:27:30 -07:00
isaacs
9164fa6aaa
Null references to request object on socket errors.
...
Regarding #3199 and #3179 and issues seen in production.
Hopefully this fixes them.
2012-05-04 14:27:24 -07:00
isaacs
2fc528ce00
http: Clean up parser usage
...
Move parsers.free(parser) to a single function, which also
nulls all of the various references we hang on them.
Also, move the parser.on* methods out of the closure, so that
there's one shared definition of each, instead of re-defining
for each parser in a spot where they can close over references
to other request-specific objects.
2012-05-04 10:40:50 -07:00
isaacs
e3ceee2dce
http: .once() usage in setTimeout
2012-05-03 10:39:16 -07:00
isaacs
b7e8e35c0e
http leak: Null links from parser to req/res
2012-05-03 10:20:45 -07:00
vvo
75f2365558
Fix #3179 HTTP memory leak using ClientRequest.
2012-05-03 07:45:46 -07:00
isaacs
c9be1d5ffd
http client: Destroy on timeout
2012-05-02 12:13:54 -07:00
isaacs
bce68134b6
http: Remove socket ondata/onend in parser cleanup
2012-05-01 15:25:59 -07:00
isaacs
bfe9cdb7f2
Null references to request object on socket errors.
...
Regarding #3199 and #3179 and issues seen in production.
Hopefully this fixes them.
2012-05-01 14:26:18 -07:00
ssuda
70005be4ff
Fixing ClientRequest setTimeout EventEmitter Leak
...
This will fix #3068
2012-04-16 23:36:18 +02:00