179 Commits (08cc66e1c7250aa2d75520fa87f01f2dfc189f75)

Author SHA1 Message Date
Sindre Sorhus 974473aadb
Correctly forward stream errors (#424) 7 years ago
Brandon Smith 9495256aa0 Use `@sindresorhus/is` for type checking (#422) 7 years ago
Sindre Sorhus 6e4eafa0fc Rewrite stream tests to use async/await 7 years ago
Sindre Sorhus a4facf311d Readme and error message tweaks 7 years ago
Luigi Pinca ff41353c2e Do not throw when using a URL object with auth (#411) 7 years ago
Luke Childs e9aea98036 Ensure cancel tests wait for a connection before cancelling (#414) 7 years ago
Luke Childs 883e40f55f Improve error handling (#412) 7 years ago
Brandon Smith c5e2f8d456 Exclude passed headers with values `null` or `undefined` (#413) 7 years ago
Pieter Mees 0c5e44ce3c Fix socket `connect` listener memory leak (#406) 7 years ago
Sindre Sorhus ae1a0fedf2
Use HTTPS for protocol-less URLs (#405) 7 years ago
Pieter Mees b9bf2e6bfc Support an object in the `agent` option (#386) 7 years ago
Slee Woo 01c26364d9 Use statusMessage returned by endpoint (#398) 7 years ago
Sindre Sorhus 2bc2b90f9e Fix test from #384 7 years ago
Patrick Poulain 92ed73ad7f Add test to ensure that HTTP request errors are catched (#384) 7 years ago
Luke Childs 3c7920507f Add `cache` option (#284) 7 years ago
Damien Lebrun b55f79e99d Expose CancelError (#378) 8 years ago
Jonathan Otto e31282dfd3 Fix cancel when timeout exists - fixes #344 (#360) 8 years ago
Vadim Demedes be7b80252a Add progress events (#322) 8 years ago
Dreamacro c0c6bcf1ac Fix unix address parser (#339) 8 years ago
Sindre Sorhus f535947a05 Escape dot in regex in a test 8 years ago
Philipp Beck 1cf2bbf8cf Support Array with the `json` option (#335) 8 years ago
Kevin Martensson 8660ab7591 Add test for `err.response.body` 8 years ago
Luke Childs 17e24e938b Remove nonexistent strictSSL option from test (#328) 8 years ago
Luke Childs f9d19e3334 Add `decompress` option (#320) 8 years ago
DJ Madeira 7964f2cdef Request timeout (#308) 8 years ago
DJ Madeira b45896aa4e Redirect on 307, 308, 303 (#307) 8 years ago
Alexander Tesfamichael f501fc2c7c Add WHATWG URL support (#289) 8 years ago
Sindre Sorhus ff0cef0040 Tiny cleanup 8 years ago
Alexander Tesfamichael 9ef7a5aab9 Add ability to cancel in-progress requests (#287) 8 years ago
Jakob Krigovsky c86706bd23 Only throw ParseError on 2xx responses (#301) 8 years ago
DJ Madeira 8b4d06ef31 Include response headers and redirect URLs in error object (#302) 8 years ago
Sindre Sorhus 6d19a728d2 Bump some devDependencies 8 years ago
Alexander Tesfamichael 51a3eafbdf Change stringifying options behavior (#297) 8 years ago
Philippe Masset 5476917722 Check protocol before sending request (#295) 8 years ago
Alexander Tesfamichael 21c5c78da7 Simplify URL argument test (#296) 8 years ago
Luke Childs 7b12b7582d Don't throw HTTPError on 304 responses (#252) 8 years ago
Alexander Tesfamichael a287f8ec8a Add url to errors (#286) 8 years ago
Sindre Sorhus 62225224b8 Remove now moot workaround for flaky tests 8 years ago
Sindre Sorhus 1f1b6ffb6d Bump dependencies and fix lint issues 8 years ago
Alexander Tesfamichael a6907b4399 Use error constructor to check for ParseError (#273) 8 years ago
Alexander Tesfamichael 919703cd8e Add protocol to stdError (#277) 8 years ago
Alexander Tesfamichael 39bf828251 Make (more) sure the error we get is the one we expect (#267) 8 years ago
Vsevolod Strukchinsky 580abc07f8 fix test/retry.js 8 years ago
Vsevolod Strukchinsky 52ddf95efc rename timeout option before passign to http.request 8 years ago
Alexander Tesfamichael 4b7fb5d5d2 Strengthen expect undefined tests (#254) 8 years ago
Vsevolod Strukchinsky b61401d631 ensure that piping really works 8 years ago
Vsevolod Strukchinsky 892813f7b0 ensure pipe methods on stream 8 years ago
Vsevolod Strukchinsky 984cd7943c fix url and responseUrl properties on gzip'ed response 8 years ago
Kevin Mårtensson 7e8af3362b Add `url` to response (#236) 8 years ago
Kevin Mårtensson 205e224bcd Add `requestUrl` to response in streaming mode (#230) 8 years ago