Commit Graph

204 Commits

Author SHA1 Message Date
David Frank 028b8f0e4b skip content encoding detection for non-html/xml/plain text response 2016-08-03 14:03:22 +08:00
David Frank 49363411f8 add a much-requested buffer() method for convenience 2016-08-03 13:27:32 +08:00
David Frank 140ae57f77 support buffer for request body 2016-08-03 13:07:47 +08:00
David Frank 3c05442699 HEAD request does not need to process body with decompression 2016-08-03 12:55:58 +08:00
David Frank 952aa2a135 Merge pull request #132 from wheresrhys/patch-1
default to 200 response status
2016-07-13 13:01:47 +08:00
Rhys Evans c3e05ff1f7 default to 200 response status 2016-07-13 00:28:36 +01:00
David Frank b46c5ea9ee 1.5.3 2016-05-26 02:54:22 +08:00
David Frank d47549eab1 Merge pull request #121 from bitinn/bugfix
closes #115 #105 #102 #101 #43
2016-05-26 02:52:47 +08:00
David Frank 21e1d81ff0 changelog update 2016-05-26 02:27:25 +08:00
David Frank 30b95dc6b8 request no longer throw errors 2016-05-26 02:20:38 +08:00
David Frank 2a6e656c1d allow any url for new request, but still reject non-http url in fetch 2016-05-26 02:19:16 +08:00
David Frank a2607719ce send delete body with content-length 2016-05-26 02:00:25 +08:00
David Frank 8a6213198b avoid calling formdata getLengthSync when it has stream as fields 2016-05-26 01:37:36 +08:00
David Frank 419597fe13 user should be able to resolve cloned body before original body 2016-05-26 01:01:56 +08:00
David Frank 8b8309fe0f handle gzip encoding with 204 and 304 responses 2016-05-26 00:46:11 +08:00
David Frank e1fcc2315a 1.5.2 2016-05-06 20:02:14 +08:00
David Frank b12b630798 changelog update 2016-05-06 20:02:07 +08:00
David Frank 7f68577de4 let nodejs handle the connection pool when agent is passed 2016-04-30 13:19:08 +08:00
David Frank 02def98f5c Merge pull request #104 from macbre/patch-1
request.js: remove unneeded input.agent
2016-04-13 13:13:50 +08:00
Maciej Brencz c8a895eb5e request.js: remove unneeded input.agent 2016-04-12 23:59:12 +02:00
David Frank 2c35103eae fix changelog 2016-04-13 02:59:43 +08:00
David Frank 3f24c09005 1.5.1 2016-04-13 02:58:35 +08:00
David Frank 311a8d5951 fix manual redirect mode 2016-04-13 02:58:04 +08:00
David Frank 1cd0a5c570 Update doc to show redirect mode 2016-04-06 03:25:16 +08:00
David Frank 321d800750 1.5.0 2016-04-06 03:00:04 +08:00
David Frank 7bdc41f64a Merge pull request #100 from bitinn/prepare-new-release
Prepare release v1.5.0
2016-04-06 02:54:00 +08:00
David Frank 396004c658 changelog update 2016-04-06 02:49:23 +08:00
David Frank 64d798dd83 add basic support for redirect mode 2016-04-06 02:47:23 +08:00
David Frank 2ebaee639f use a IETF reserved domain name for invalid dns test 2016-04-06 02:01:07 +08:00
David Frank d28febd497 check that FetchError is an instanceof Error 2016-04-06 01:54:20 +08:00
David Frank ea8d7ca15f socket timeout should really be custom request timeout, change name to reflect it 2016-04-06 01:47:07 +08:00
David Frank 974666a3a8 code formatting 2016-04-06 01:43:12 +08:00
David Frank 364edcf04b doc update 2016-04-06 01:32:37 +08:00
Christian Pekeler b6f3913499 Support for program checkable error by introducing custom errors with error types/codes
This finally closes #7
2016-04-05 21:20:42 +08:00
David Frank 98b167c35d 1.4.1 2016-03-23 15:33:01 +08:00
David Frank 016ab41a72 changelog update 2016-03-23 15:32:31 +08:00
David Frank 12996fd902 Merge pull request #92 from bitinn/support-formdata-in-wrapping
Fix formdata support when you are trying to wrap the request
2016-03-23 15:26:18 +08:00
David Frank 4d63427123 demostrate restream more clearly in tests 2016-03-23 15:23:56 +08:00
David Frank 89ce1b70b6 fix formdata support when you are trying to wrap the request 2016-03-23 15:02:04 +08:00
David Frank 5f610cbdc4 Req and Res ctor should be good enough 2016-03-21 15:14:56 +08:00
David Frank 2dd4ee5838 1.4.0 2016-03-19 19:02:12 +08:00
David Frank 083c31f126 Merge pull request #90 from bitinn/prepare-new-release
Prepare new release v1.4.0
2016-03-19 19:01:10 +08:00
David Frank 14c20dd22a changelog update 2016-03-19 18:57:41 +08:00
David Frank 4b589bc147 node v0.10 allow header support is weird, attempt to fix test 2016-03-19 18:52:13 +08:00
David Frank 839354b76b fix missing require 2016-03-19 18:45:02 +08:00
David Frank 42d822273f node 0.10 need the status code fallback 2016-03-19 18:41:11 +08:00
David Frank 827ce8fa31 fix tests for older node 2016-03-19 18:36:53 +08:00
David Frank 9a90e7d0b9 test for options support 2016-03-19 18:24:08 +08:00
David Frank 362aa087ca clone method support 2016-03-19 18:06:33 +08:00
David Frank 00fa867914 fix chunked encoding support for character encoding conversion, thx @dsuket PR #50 2016-03-19 16:17:14 +08:00