Kirill Konshin
|
e658483ebe
|
Fix for #38 and #36
Support string/buffer bodies in Response constructor
Request should have Body methods like text(), json()
|
2016-02-17 10:50:55 -08:00 |
Tomáš Ehrlich
|
751cf6cd29
|
Add Headers.forEach method.
|
2015-10-27 06:13:02 +01:00 |
David Frank
|
cf128ddfb8
|
make sure we test with transform stream
|
2015-09-28 23:04:14 +08:00 |
David Frank
|
6072402eb6
|
test case for Response ctor
|
2015-09-28 22:39:53 +08:00 |
David Frank
|
b48757013a
|
per spec, follow redirect with GET request
|
2015-09-28 22:30:41 +08:00 |
David Frank
|
8f02a2b77c
|
handle body stream error
|
2015-09-28 21:58:45 +08:00 |
David Frank
|
cfe98cdd35
|
make sure we don't overwrite existing content-length
|
2015-09-28 19:27:57 +08:00 |
David Frank
|
c22bfa8189
|
auto add content-length on for string body
|
2015-09-28 17:40:58 +08:00 |
Kirill Konshin
|
765aef29f8
|
Fix for #33
Added parsing of Headers in Response & Request constructors
|
2015-08-08 19:43:55 -07:00 |
David Frank
|
565ec4b35a
|
additional tests for the new form-data integration
|
2015-07-22 15:40:52 +08:00 |
Dylan Piercey
|
ffac4177b0
|
Automatically pull headers from node-form-data.
|
2015-07-22 02:05:06 +00:00 |
David Frank
|
b64073c64c
|
update comment to explain hack, make use of inpsect route in test, and update changelog
|
2015-07-11 19:38:26 +08:00 |
Matthew Andrews
|
e98f22b3ba
|
Add failing test for the ability to set a custom header
|
2015-07-11 10:37:51 +01:00 |
David Frank
|
feb4808a22
|
allow request wrapping
|
2015-06-04 12:40:01 +08:00 |
David Frank
|
9b5330dfe3
|
add basic test case for request
|
2015-06-04 12:12:27 +08:00 |
David Frank
|
a322795339
|
handle common mistake of passing number as header
|
2015-05-04 12:05:06 +08:00 |
Rhys Evans
|
5e4d9b1a60
|
expose response and headers constructors
|
2015-05-03 09:43:59 +01:00 |
David Frank
|
596232fd90
|
better test for headers, only support string and array
|
2015-04-29 12:15:08 +08:00 |
David Frank
|
19dcea47f1
|
add Headers support
|
2015-04-22 23:36:11 +08:00 |
David Frank
|
e09dfae0a5
|
timeout on body and clear timeout internally
|
2015-04-17 13:26:55 +08:00 |
Kirill Dmitrenko
|
d868add4db
|
Test for clearing timeout
|
2015-04-16 21:46:22 +03:00 |
David Frank
|
3f59e6e964
|
added test cases for regex
|
2015-03-24 12:31:04 +08:00 |
David Frank
|
a8bb5650ad
|
fix follow=0 scenario
|
2015-03-20 00:22:23 +08:00 |
David Frank
|
281037c795
|
travis and tests update, plus some doc clean up
|
2015-03-19 23:38:27 +08:00 |
David Frank
|
48a0a9a2f2
|
xml encoding detection, response size limit
|
2015-01-28 22:56:25 +08:00 |
David Frank
|
9358045798
|
redirect 301 result in status 200 and res.ok true
|
2015-01-28 13:10:33 +08:00 |
David Frank
|
60d232d66a
|
better test coverage on edge case
|
2015-01-28 13:01:10 +08:00 |
David Frank
|
be778b9d8c
|
better tests and doc for res.ok
|
2015-01-28 12:17:12 +08:00 |
Matthew Andrews
|
ff5eabfdf4
|
Add a convenience `ok` getter on `Response`
|
2015-01-27 23:43:06 +00:00 |
David Frank
|
ff81206c4a
|
better test coverage
|
2015-01-28 01:00:53 +08:00 |
David Frank
|
53a763beab
|
more tests
|
2015-01-27 23:33:06 +08:00 |
David Frank
|
af21ae6c1c
|
basic refactor done
|
2015-01-27 21:11:26 +08:00 |
David Frank
|
93a983d815
|
basic fetch feature done
|
2015-01-27 01:46:32 +08:00 |
David Frank
|
f57ebe10df
|
basic streaming body
|
2015-01-26 21:58:52 +08:00 |
David Frank
|
78853fc544
|
add test cases
|
2015-01-26 21:28:23 +08:00 |
David Frank
|
75699bb467
|
basic http added
|
2015-01-26 18:15:07 +08:00 |
David Frank
|
9c472a52f2
|
setup repo
|
2015-01-26 17:02:34 +08:00 |