55 Commits (2029c307094184d38f9a85763bc5054ee9ca7c7d)

Author SHA1 Message Date
Vsevolod Strukchinsky 53df1ca251 Add query option 10 years ago
Vsevolod Strukchinsky 47da1181a5 Accept http.request object as first argument 10 years ago
Vsevolod Strukchinsky 9f14fa61ea tiny fix for consistency 10 years ago
Vsevolod Strukchinsky d615b0bd2b use returned value from pipe method as new response 10 years ago
Vsevolod Strukchinsky 68e0b26e79 remove unnecessary if branch 10 years ago
Vsevolod Strukchinsky a0913bc13c add body option validation 10 years ago
Vsevolod Strukchinsky 472752af14 don't erase callback on helpers methods 10 years ago
Vsevolod Strukchinsky c06d741131 Use backported agents from Node core 10 years ago
Sindre Sorhus ae73837301 don't mutate the user-supplied options object 10 years ago
Kevin Martensson 403fefa01a Use camelCase names 10 years ago
Vsevolod Strukchinsky 82fa89c54d Fix nested error on json parse 10 years ago
Vsevolod Strukchinsky 7da072b608 Parse non-200 responses when options.json is true 10 years ago
Vsevolod Strukchinsky f8057d24fc Add json option 10 years ago
Vsevolod Strukchinsky 26b1174bed Use nested-error-stacks to provide more detailed errors 10 years ago
Vsevolod Strukchinsky 2b58c4499f Unnecessary .call on callback 10 years ago
Kevin Martensson 929cb59857 Emit `response` event 10 years ago
Kevin Martensson 8873df99f7 Remove trailing space 10 years ago
Vsevolod Strukchinsky ef8bdeb226 Improve error message on not 2xx code 10 years ago
Sindre Sorhus e91768606c extract the key lowercasing to a separate module 10 years ago
Sindre Sorhus d7737c7490 prevent duplicates of different casing in `opts.headers` 10 years ago
Vsevolod Strukchinsky 93b6b7815f 🆙 read-all-stream to 1.0.0 10 years ago
Sindre Sorhus c05add501c minor tweaks 10 years ago
Kevin Martensson a0985a62ec Various tweaks 10 years ago
Sindre Sorhus 65b693bd80 minor tweaks 10 years ago
Sindre Sorhus 0b6d7da87a support protocol-less URLs 10 years ago
Vsevolod Strukchinsky 5d5d0cc6e2 Use agents with maxSockets set to Infinity 10 years ago
Vsevolod Strukchinsky 81d0697ae4 Discard response before throw 10 years ago
Vsevolod Strukchinsky 1f9281f27d Discard response payload on redirect response 10 years ago
Vsevolod Strukchinsky 7693a7d645 Add readable streams support in options.body 10 years ago
Vsevolod Strukchinsky 45bb21b9c9 Change order of comparsions and header check 10 years ago
Sindre Sorhus a1525f8edd implement got as WritableStream on PATCH too 10 years ago
Sindre Sorhus 1483895159 implement shortcut methods for all the HTTP verbs 10 years ago
Vsevolod Strukchinsky c080439382 Implement got as WritableStream on POST and PUT 10 years ago
Vsevolod Strukchinsky 2c8ee3fc91 Close #15 PR: Implement body option. 10 years ago
Vsevolod Strukchinsky 14e0dd8892 Add timeout option 10 years ago
Vsevolod Strukchinsky cef2daacb5 Read response stream even if status is not 200 10 years ago
Vsevolod Strukchinsky 015785bccf Remove res.destroy and move read code to static method 10 years ago
Kevin Martensson 4a6b6d7cc7 Return an error object on connection failure 10 years ago
Sindre Sorhus a2501bf122 tweaks 10 years ago
Julien Fontanet 9969aa9582 Forward errors in proxy mode. 10 years ago
Sindre Sorhus 2e238e96f0 minor style tweaks 10 years ago
Julien Fontanet 92d6abf9c6 Stream mode (fix #1). 10 years ago
Sindre Sorhus 1213b16a68 code style 10 years ago
Julien Fontanet b67918c7a3 Encoding support (fix #4). 10 years ago
Vsevolod Strukchinsky e7359757b1 Check that res.statusCode in 200..299 range 10 years ago
Vsevolod Strukchinsky a8995f7da0 Passing response object to callback 10 years ago
Sindre Sorhus b7a9c3ef49 add gzip/deflate support 11 years ago
Sindre Sorhus 1b3aca9ab7 better error handling 11 years ago
Sindre Sorhus ce1ef7db34 add default `user-agent` 11 years ago
Sindre Sorhus 21121688cb add support for options 11 years ago