Commit Graph

52 Commits (61fb62747731d0969f9305a5ca4b823bba171ca5)

Author SHA1 Message Date
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
Pooya Parsa a923db3b30 feat: passing options via proxy option 2018-02-04 21:32:30 +03:30
Pooya Parsa ea7b569d30 fix(progress): finish on fail 2018-02-04 21:10:39 +03:30
Pooya Parsa ea4882a52f fix: support dynamic API_URL for SSR 2018-01-30 01:48:47 +03:30
Pooya Parsa cbdc586c0c fix(progress): ensure $loading is valid 2018-01-29 01:40:58 +03:30
Pooya Parsa 0d3be173f2 feat: support proxy 2018-01-28 22:40:23 +03:30
Pooya Parsa 6ffcd8462c update uptions 2018-01-28 22:10:35 +03:30
Pooya Parsa 41a0964b7e feat: integrate with nuxt progress bar 2018-01-28 21:52:32 +03:30
Pooya Parsa fa3eb473b5 feat: interceptor helpers 2018-01-28 19:17:47 +03:30
Pooya Parsa 6f2fa080dd improve debug 2018-01-28 18:28:19 +03:30
Pooya Parsa ac6f18f6d0 improve debug 2018-01-28 18:23:57 +03:30
Pooya Parsa 647b58f133 feat: rewrite plugin 2018-01-28 17:27:39 +03:30
Pooya Parsa 533cf4ee2c refactor: a better and more stable way to specify baseURL and browserBaseURL options
BREAKING CHANGE: prefix should be set to `/api` for backward compability. refer to new docs.
2018-01-16 20:45:12 +03:30
Pooya Parsa 8e0ee32757 refactor: index ~> module 2018-01-16 19:48:22 +03:30
Antério Vieira ab312a3169 chore: unused variables removed (#68) 2017-12-29 20:12:19 +03:30
Paul Schmidt f1e95ff4b5 feat: disable sefault error handler (#44)
* Override the default error handler

Otherwise there is the possibility that they are conflicting with each other.
Also added a option, where you can disable the errorHandler at all (for example if you work with the responseInterceptor)

* Changed option name and added the documentation.

Renamed the option to `disableDefaultErrorHandler`.
Added documention for the new option.
2017-10-12 11:51:39 +03:30
Pooya Parsa 7c13655ef4 feat(proxyHeader): proxyHeadersIgnore option
#39
2017-09-30 20:02:44 +03:30
Pooya Parsa dadd7d8e2b feat: don't rely on hostname for default values 2017-09-12 03:20:18 +04:30
Pooya Parsa c70749a6c5 feat: pass ctx to errorHandlers
#25
2017-09-08 10:35:55 +04:30
Pooya Parsa 2f04e3020f fix: delete accept header
fixes #12
2017-09-06 23:11:03 +04:30
Pooya Parsa 356b31f032 fix: inject $axios in current ctx
#18
2017-09-06 23:05:20 +04:30
Pooya Parsa bcd47102c1 perf: move init outside of plugin 2017-09-06 23:02:55 +04:30
Pooya Parsa 88961d462c tests for init 2017-09-06 22:59:07 +04:30
Pooya Parsa 8e0c0e8c4c feat: add options.init
#21
2017-09-06 22:30:58 +04:30
Pooya Parsa b16d6bf8a3 feat: responseInterceptor and errorHandler 2017-08-30 22:20:43 +04:30
Pooya Parsa 61432a1916 feat: better baseURL message 2017-08-30 21:44:18 +04:30
Pooya Parsa a341185f5b feat: upgrade for nuxt rc8
BREAKING CHANGE: app.axios is not available anymore (without $) should always use app.$axios
2017-08-30 21:39:30 +04:30
Pooya Parsa 7ba3ae819d fix: create fresh objects for all default header scopes 2017-08-13 19:47:02 +04:30
Pooya Parsa 9355228536 fix(headers): fix security bug with default request headers 2017-08-13 19:00:33 +04:30