164 Commits (cacheable-request)

Author SHA1 Message Date
Luke Childs 0ef2c4fc1e Test response objects have fromCache property set correctly 8 years ago
Luke Childs c2c920fdb0 Test TTL is passed to cache 8 years ago
Luke Childs a67f157cff Test stale cache entries that can't be revalidate are deleted from cache 8 years ago
Luke Childs 459cbbf958 swap no-cache for max-age=0 8 years ago
Luke Childs f56c508ab4 Test stale cache entries with ETag headers are revalidated 8 years ago
Luke Childs b6b3401053 Test stale cache entries with Last-Modified headers are revalidated 8 years ago
Luke Childs 4e3a3dcf40 Rename /no-cache test endpoint to /no-store 8 years ago
Luke Childs 8ee8a4a249 More accurate test 8 years ago
Luke Childs 58ffa2bae8 Check the cache is actually being filled 8 years ago
Luke Childs be4c431072 Make sure "/no-cache" test endpoint is completely unstorable 8 years ago
Luke Childs bd99d4dbee requests => responses 8 years ago
Luke Childs 70d57d7211 Test stream responses are cached 8 years ago
Luke Childs 7d4365ec25 Check in binary test that data actually is binary 8 years ago
Luke Childs b3f23ea9cd Move test server endpoints out into test.before 8 years ago
Luke Childs f2026dc68b Test cached response is re-encoded to current encoding option 8 years ago
Luke Childs 4e98913981 Test binary responses are cached 8 years ago
Luke Childs f64dcc7f69 Move server endpoints inside test function for readability 8 years ago
Luke Childs b3201ea733 Use Map() as cache store in cache tests 8 years ago
Luke Childs 28112935ca Add basic cache tests 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
bisubus 21b8b4a5bf allow non-plain object as request body (#217) 9 years ago
Sindre Sorhus be9fe6a17c bump dependencies 9 years ago
Kevin Martensson e25457da16 Add test for unexpected EOF when decompressing content 9 years ago
Dylan Piercey 57f13d9af2 Detect formdata body and set content-type header (#220) 9 years ago
Luan Muniz 9185b5beb0 Fix location encoding (#214) 9 years ago
Luan Muniz 1409f828fe Add a `requestUrl` property to the response object (#205) 9 years ago
Roland Warmerdam 52a67e60a1 Add redirect url to response object (#191) 9 years ago
Sindre Sorhus 9bb4696c16 fix lint issues with latest XO 9 years ago
Sindre Sorhus 7d0a45a828 add test to ensure gzip works in stream mode 9 years ago
Sindre Sorhus f5e227edc5 fix XO lint issues 9 years ago
Sindre Sorhus b09afd0ce5 automagically migrate to latest AVA 9 years ago
Sindre Sorhus f33514146c minor tweaks 9 years ago
Ruy Adorno b3cd961254 Added option to toggle automatic following redirects 9 years ago
Sindre Sorhus 0664b9802f code style - import order 9 years ago
Sindre Sorhus f65477ee73 fix typo in tests 9 years ago