Skip to content

2.0.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 23 Nov 09:01
· 1462 commits to main since this release
  • Return an error object on connection failure instead of the HTTP status code. 4a6b6d7
    The HTTP status code is now available as a code property on the error object.
  • Read response stream even if status is not 200. cef2daa
    If you only care about the returned status code make sure to do a HEAD request.
  • Add timeout option. 14e0dd8