2
0
mirror of https://github.com/therootcompany/request.js synced 2025-03-14 12:20:38 +00:00

43 Commits

Author SHA1 Message Date
927576a006
refactor: mv types.js index.js (and rexport request.js) 2022-09-01 00:58:51 -06:00
2a17ce09eb
refactor: mv index.js request.js 2022-09-01 00:57:57 -06:00
750751966e
lint+feat: add types + minor ws-ish refactor 2022-09-01 00:06:19 -06:00
3aac42d08b
fix: register otherwise silent http response error 2022-07-07 02:55:16 -06:00
5b539deb7b
fix: copy http options from opts (not opts.uri) 2022-06-14 01:24:50 -06:00
ba60df7eab
fix: don't JSON.stringify a string body, duh 2022-01-12 12:42:34 -07:00
9518cb970b feature: add resp.stream.body() and resp.ok 2021-10-18 01:38:44 -06:00
2e9a643c0f feature: fail faster on bad createWriteStream 2021-10-18 00:55:04 -06:00
5f5e0b6066 bugfix: return after error callback 2021-10-18 00:47:06 -06:00
95a12a8285 v1.7.0 add stream support 2021-01-14 16:35:07 -07:00
9395ec96e3 make Prettier (v2) 2021-01-14 16:07:48 -07:00
3574e35635 v1.6.1: userAgent and docs 2020-04-28 23:14:50 -06:00
f6557b7610 handle possible readable body error 2020-04-28 22:56:12 -06:00
4b9a1f07ee add default User-Agent 2020-04-28 22:43:27 -06:00
812f4e6062 bugfix request compat opts.auth.bearer 2020-03-12 01:59:33 -06:00
5b5cd36aa5 allow pipe-able inputs 2020-03-12 01:57:10 -06:00
87bf5a5fc5 v1.4.2: regression fix: copy 'method' to final object 2019-11-01 01:18:25 -06:00
1692b9e7df v1.4.1: GET by default *after* POST body check 2019-10-29 21:53:39 -06:00
8f5133385b v1.4.0: add promise support and easy debugging 2019-10-29 14:57:28 -06:00
1507b38503 v1.3.12: bugfix json request 2019-10-29 14:42:26 -06:00
9ab91d9721 make Prettier 2019-10-29 14:31:30 -06:00
335dd98631 v1.3.11: pass callback 2019-05-23 13:25:20 -06:00
AJ ONeal
aec78877cf v1.3.7: agent passthru (also timeout, setHost, createConnection, family, host, localAddress) 2019-02-26 01:02:37 -07:00
49daa68225 v1.3.6: merge some bugfix PRs 2018-07-12 03:12:49 -06:00
AJ ONeal
c880788e9a Merge branch 'fix/getHeaderName' of Joxit/urequest.js into master 2018-07-12 09:05:15 +00:00
Joxit
b3f4042adb Should send opts and not opts.headers in getHeaderName 2018-07-12 10:17:59 +02:00
Joxit
e1bc24ce97 Add HTTP codes 307 and 308 for redirect
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
2018-07-12 10:10:23 +02:00
078f922635 stop on form-data error 2018-07-07 19:56:53 -06:00
3defd84af4 v1.3.4: bugfix keep separate headers and don't keep Content-Length on redirect 2018-07-07 19:46:21 -06:00
50704fdccc v1.3.3: bugfix form-data request object 2018-07-07 16:19:00 -06:00
739354090b wrap onResponse for form-data's signature with error 2018-07-07 14:30:58 -06:00
c355fb20c4 explicit POST and comment on possible deviation from request API 2018-07-06 22:40:28 -06:00
5150e076cb bugfix: don't default to POST when json: true 2018-07-06 22:31:37 -06:00
e0fe41838d support Basic and Bearer auth 2018-07-06 21:23:46 -06:00
b5714c6a65 www-form support, add *Content-Length by default 2018-07-06 20:20:14 -06:00
8758964610 FormData support with form-data 2018-07-06 19:38:47 -06:00
db01707e13 return correct obj and ws 2018-06-29 02:20:07 -06:00
dcc5ba0c7e add unix domain socket support and update README 2018-06-29 02:18:44 -06:00
94eec37646 use callback not throw 2018-06-26 14:43:56 -06:00
c9e8c4702b bugfix should set application/json on json post unless content-type already set 2018-06-20 02:11:37 -06:00
33ab916082 redirect and POST bugfixes 2018-06-19 01:09:31 -06:00
04947932c3 a number of bugfixes 2018-06-19 00:17:04 -06:00
956c16e48c initial commit 2018-06-18 19:39:19 -06:00