Commit Graph

80 Commits (4152f874a168dcdbceadd92b178b6213b535856b)

Author SHA1 Message Date
Ricardo Gobbo de Souza 4152f874a1
fix: ignore proxy headers `content-md4` and `content-type` (#107) 2020-06-06 20:03:37 +02:00
Ricardo Gobbo de Souza 8ae0cd5655
feat: https detection (#106)
nuxt-community/axios-module#260
2020-06-06 20:03:18 +02:00
Ricardo Gobbo de Souza fc3e78e130
feat: support baseUrl and remove port :443 and :80 when http or https (#103) 2020-06-03 22:36:17 +02:00
Ricardo Gobbo de Souza 2839260ea9
feat: allow adding custom headers with nuxt config (#101)
* feat: allow adding custom headers with nuxt config

* fix: Ky headers are simple

* docs: `setToken` not accept custom headers

* style: indentation
2020-05-26 19:38:55 +02:00
Kevin Marrec 10fbd67966
fix: remove leading slash when using prefixUrl (#96) 2020-04-29 19:54:55 +02:00
Sébastien Chopin e37358f5b2 feat: add create helper and improve docs 2020-04-13 21:09:04 +02:00
pooya parsa 50ef8e05f7 fix(module): always set protocol to https when `https: true` is set 2020-03-27 13:45:42 +01:00
Pooya Parsa bc58738c6b fix(module): read port and host from options/cli before fallback 2020-01-30 23:10:26 +01:00
Kotaro Imai bdae0c0aab
feat: enable advanced retry options (#80) 2020-01-30 23:03:27 +01:00
MKGaru febf2658dc
fix: use json serialization for plain array (#87) 2020-01-30 23:01:54 +01:00
Kotaro Imai 3d0aa272d2 feat: add `onRetry` hook (#79) 2019-11-02 12:02:50 +01:00
Pooya Parsa fcc7934610 fix lint errors 2019-09-05 18:34:41 +02:00
Sébastien Chopin 2ce08de2ec fix: transpile ky (#61) 2019-07-24 15:59:26 +04:30
pooya parsa 185dabbef9 fix: ignore content-length header 2019-06-05 16:14:03 +04:30
pooya parsa d965efae3a fix: handle false timeout 2019-05-30 13:01:27 +04:30
pooya parsa 2b0f463416 revert: revert converting header names to lowercase 2019-05-30 02:47:12 +04:30
Alessandro Giordo 53287ddf80 feat: support setting timeout and disable by default (#51) 2019-05-30 02:44:54 +04:30
pooya parsa fa4b94a48f refactor: prevent mutating HTTP constructor args 2019-05-23 01:10:38 +04:30
pooya parsa 0f1dc174eb lowercase `authorization` 2019-05-22 19:15:21 +04:30
Pim 7ad6645d8a feat: convert header names to lowercase (#45) 2019-05-22 01:50:04 +04:30
Sébastien Chopin 454807c5ab fix: lowercase `accept-encoding` header (#43)
+ update docs
2019-05-21 22:36:47 +04:30
Per Anders Ljusbäck 15274cbee1 fix: correctly handle `proxyHeaders: false` (#17) 2019-04-18 20:34:44 +04:30
pooya parsa 57b8a8be9a feat: allow passing body as argument 2019-04-10 01:03:35 +04:30
pooya parsa a94424543d global retry 2019-03-24 15:42:58 +04:30
pooya parsa dd0331d038 chore: remove debug 2019-03-24 00:06:51 +04:30
pooya parsa 7903bde1e9 chore: remove progress 2019-03-24 00:06:19 +04:30
pooya parsa b9d485e47b chore: remove credentials 2019-03-24 00:05:37 +04:30
pooya parsa 8bff67556c chore: fix plugin lint 2019-03-19 00:10:45 +03:30
pooya parsa 61fb627477 feat: http class 2019-03-19 00:08:46 +03:30
pooya parsa d21aca4432 chore: default retry to 0 2019-03-18 22:41:20 +03:30
pooya parsa 7bc50f8bee fix: default retry to 1 2019-03-18 22:32:36 +03:30
pooya parsa 09a5382778 fix: prefixUrl 2019-03-18 22:31:55 +03:30
pooya parsa 18e5fa1f7a chore: make it working 2019-03-18 22:31:00 +03:30
pooya parsa a493fee0fb chore: basic migration of plugin 2019-03-18 21:39:39 +03:30
Ricardo Gobbo de Souza 932abc071b use object spread (#216) 2019-02-19 12:13:56 +03:30
Ricardo Gobbo de Souza 6a34d0fc0b refactor(package): update module (#206) 2019-02-09 17:34:47 +03:30
Alexander Lichter 4a52bfdc81 fix: correctly ignore brotli encoding on server-side (#180) 2018-11-08 12:47:46 +03:30
Le_Futuriste 3ae5416732 fix(defaults): ignore `cf-ray` and `cf-connecting-ip` headers on server side (#20) (#175) 2018-11-07 17:12:33 +03:30
ECO c84fb56f20 fix(defaults): set proper Accept-Encoding for server side (#176) 2018-11-07 17:10:54 +03:30
Pooya Parsa 481e6da8ec feat: CLI improvements 2018-03-31 23:46:54 +04:30
Pooya Parsa 4ec3b5dd0f feat: consola integration 2018-03-31 22:22:54 +04:30
Alex Kozack a90236edd0 fix(progress): onProgress when currentRequests is zero (#118) 2018-03-07 14:26:09 +03:30
Alex Kozack 040eaf7410 fix(progress): handle division by zero (#117)
fixes #166.
2018-03-06 23:59:14 +03:30
Pooya Parsa 1530bb6767 feat: allow disable progress per request. closes #112. 2018-03-05 20:23:29 +03:30
yahtnif dd677341a6 feat: disable https for localhost url (#93) 2018-03-05 20:14:20 +03:30
Pooya Parsa a8ea331afc fix: don't mutate env.API_URL
This was causing side-effects and invalid proxy config after reloading nuxt.config.js
2018-02-09 01:04:47 +03:30
Pooya Parsa 9ecb547f51 feat: https option (#57) 2018-02-04 23:07:58 +03:30
Pooya Parsa 4d31c1e10a refactor(retry): normalize true value at module 2018-02-04 21:58:25 +03:30
Pooya Parsa 033f0dae19 test: add retry to tests
#77
2018-02-04 21:47:28 +03:30
Pooya Parsa 7221cacb37 feat: support retry with axios-retry
#77
2018-02-04 21:47:05 +03:30