mirror of
https://git.coolaj86.com/coolaj86/request.js
synced 2025-12-18 17:58:39 +00:00
269 B
269 B
CHANGELOG
v1.8.0
- add
resp.ok- same as WHATWG fetchresp.ok = (resp.statusCode >= 200 && resp.statusCode < 300) - add
resp.stream.body()to populateresp.bodyrather than (or perhaps in addition to) continuing to stream (useful for error handling)