Commit Graph

90 Commits (master)

Author SHA1 Message Date
Perlover c130873a48
Removed duplicated lines ;-) (#145)
Removed duplicated lines ;-)
2020-11-22 12:59:36 +01:00
Azri Kahar e981e62289
fix: use regex to avoid falsely replacing ports starting with 80 (#124) 2020-09-26 12:51:46 +02:00
Alexander Lichter 6bc12959a5
fix(plugin): debug option broken (#117) 2020-07-16 19:17:51 +02:00
Sébastien Chopin 18e9b11c39 fix: set default host 2020-07-14 13:01:11 +02:00
Sébastien Chopin 823204c399 fix: build.transpile should be an array
Resolves #115
2020-07-14 12:34:33 +02:00
Sébastien Chopin b9f5e053d3 feat: handle runtimeConfig and static target 2020-07-14 12:32:28 +02:00
pooya parsa 77b084bc01 fix(plugin): allow reusing error.response.json 2020-06-29 12:44:50 +02:00
pooya parsa ada73879f7
feat: improve `$` helpers and error object (#113)
* test: add error fixture

* feat: improve `$` helpers and error object

* chore: remove duplicated line

* docs: clear error properies

* docs: improvements

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2020-06-17 13:01:35 +02:00
Ricardo Gobbo de Souza 874b668e1e
feat: `debug` option (#109) 2020-06-12 17:46:48 +02:00
pooya parsa e7cb647047
fix: use local version of ky-universal (#111) 2020-06-12 17:43:59 +02:00
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