195 Commits (44229f2b37de3727e0186ee9f2bc024b6446daf0)

Author SHA1 Message Date
Luke Childs 44229f2b37 Properly handle cacheable-request error types 7 years ago
Pieter Mees 0c5e44ce3c Fix socket `connect` listener memory leak (#406) 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
Luke Childs 3c7920507f Add `cache` option (#284) 7 years ago
Sindre Sorhus 33cbb6ffcf Make the `useElectron` option `false` by default 8 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
Rich Hodgkins 4b49df20f0 Remove StdError constructor call from error stack traces (#367) 8 years ago
Vadim Demedes be7b80252a Add progress events (#322) 8 years ago
Luke Childs a4eb37b8d0 Error should be called `err` for consistency (#347) 8 years ago
Dreamacro c0c6bcf1ac Fix unix address parser (#339) 8 years ago
Philipp Beck 1cf2bbf8cf Support Array with the `json` option (#335) 8 years ago
Luke Childs ee405f4843 Add all helper functions in the same loop (#336) 8 years ago
Steven Vachon 3f117379e6 `url` arg optimizations (#329) 8 years ago
Luke Childs f9d19e3334 Add `decompress` option (#320) 8 years ago
Sindre Sorhus 6fc1902805 Add ability to opt-out of using `electron.net` 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 a299b00834 Set up proxy event emitter before making a request (#304) 8 years ago
Sindre Sorhus 213057084c Improve use in Electron (#311) 8 years ago
DJ Madeira 359a5d17ec Use class syntax for errors (#306) 8 years ago
Alexander Tesfamichael f501fc2c7c Add WHATWG URL support (#289) 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 578f38d527 Set `url` and `requestUrl` directly on the response (#300) 8 years ago
Vsevolod Strukchinsky 14d0859261 reduce retries number and make delays shorter (#299) 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
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 1f1b6ffb6d Bump dependencies and fix lint issues 8 years ago
Alexander Tesfamichael 919703cd8e Add protocol to stdError (#277) 8 years ago
Vsevolod Strukchinsky 52ddf95efc rename timeout option before passign to http.request 8 years ago
Dmitry Tsvettsikh 53b11e3539 use `safe-buffer` (#253) 8 years ago
Sindre Sorhus 98aa20682d drop the `node-status-code` dependency 8 years ago
Sindre Sorhus e1ca864d9e minor cleanup 8 years ago
Tommy Troy Lin 3b8665cec9 fix TypeError: binary is not a function (#243) 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 Martensson 5888ca7aa1 `new Buffer()` => `Buffer.from()` 8 years ago
Kevin Mårtensson 205e224bcd Add `requestUrl` to response in streaming mode (#230) 8 years ago
Sindre Sorhus f616a0fced make XO happy 8 years ago
bisubus 21b8b4a5bf allow non-plain object as request body (#217) 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