Niklas Volcz
2971289252
fix(http): correct Response header initialization to support cloning ( fix #14892 ) ( #3252 )
...
Previously, headers were patched onto the Response object after construction, which bypassed the internal header list and caused `response.clone().headers` to be empty. This change passes the headers directly to the Response constructor, ensuring they are properly stored and clonable.
2026-02-16 16:35:09 +02:00
Del
61e9b0ab64
fix(http): ensure body resources are released on stream cancellation ( #3228 )
...
Co-authored-by: Amr Bashir <github@amrbashir.me >
2026-01-22 05:20:29 +02:00
Amr Bashir
e8915f17e4
fix(http): fix aborting a streaming response ( #2562 )
2025-11-24 13:55:11 +01:00
asomethings
2448e717e5
feat(http): add status code 101, 103 for null body ( #2655 )
2025-04-30 19:52:23 +03:00
Amr Bashir
5e78988f72
feat(http): handle 205, 304 null body ( #2647 )
...
followup to #2636
ref: https://github.com/tauri-apps/plugins-workspace/pull/2636#issuecomment-2815593359
2025-04-19 12:45:41 +02:00
asomethings
ff384cbabe
fix(http): handle status code 204 to use js null fix #2580 ( #2636 )
...
* fix(http): handle status code 204 to use javascript null
* add change file
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2025-04-18 09:53:25 -03:00
Amr Bashir
a15eedf378
fix(http): avoid closing stream multiple times ( #2535 )
...
* fix(http): avoid closing stream multiple times
closes #2533
* use different signal than empty vec
2025-03-16 16:45:45 -03:00
Adriel Jansen Siahaya
d3183aa99d
fix(http): return response early in JS before waiting for chunks on the rust side ( #2522 )
2025-03-15 02:06:41 +02:00
Adriel Jansen Siahaya
cb38f54f4a
HTTP add stream support ( #2479 )
...
* feat: add stream support
* feat: add stream support
* Revert "feat: add stream support"
This reverts commit 5edea81680 .
* feat: add stream support
* Discard changes to pnpm-lock.yaml
* Discard changes to plugins/http/package.json
* fix(stream): change IPC packet
* fix: update stream message guest-js
* fix: return early when aborted
* fix: use InvokeResponseBody as packet
* fix: remove serde_bytes
* fix: remove reqwest response
* fix: content conversion bug
* fix: remove ReqwestResponses along with its implementations
* formatting and update changelog
* build api-iife.js
---------
Co-authored-by: Fabian-Lars <github@fabianlars.de >
2025-03-08 15:45:05 -03:00
DiamondDrake
105136494c
feat(http): add dangerous settings / disable ssl verification - issue #518 ( #2204 )
2025-01-22 02:23:37 +02:00
Amr Bashir
cf4d7d4e6c
chore: adjust prettier config, .gitignore and use taplo to format toml files ( #1728 )
...
* chore: adjust prettier config, .gitignore and use taplo to format toml files
This brings the plugins-workspace repository to the same code style of the main tauri repo
* format toml
* ignore examples gen dir
* add .vscode/extensions.json
* remove packageManager field
* fmt
* fix audit
* taplo ignore permissions autogenerated files
* remove create dummy dist
* fix prettier workflow
* install fmt in prettier workflow
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-09-04 08:54:23 -03:00
Twilight
84f8bd5e1e
fix(http): properly invoke abort ( #1662 )
...
Co-authored-by: amrbashir <github@amrbashir.me >
2024-08-14 19:18:32 +03:00
Amr Bashir
ac9a25cc12
fix(http): use tokio oneshot channel for detecting abort ( #1395 )
...
* fix(http): properly handle aborting
closes #1376
* abort early in JS
* avoid using unnecessary mutexes
* fix lint
* update bundle
* simplify
2024-07-08 20:31:29 +03:00
Amr Bashir
a66549329c
fix(http): set headers on resposne manually ( #1526 )
...
The browser `Response` constructor removes `set-cookie` headers and so we set them manually.
closes #1470
2024-07-08 15:18:14 +03:00
FabianLars
6ada2af2e1
chore(http): Run prettier
2024-06-08 13:54:34 +02:00
FabianLars
8e1ae08c69
docs(http): Replace allowlist scope with capability scope
2024-06-08 13:51:31 +02:00
renovate[bot]
a2eb3a6e43
chore(deps): update dependency eslint to v9 (v2) ( #1424 )
...
* chore(deps): update dependency eslint to v9
* flat config
* license header
* rebuild
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de >
2024-06-03 21:04:13 +02:00
Amr Bashir
9d7ae45b0e
fix(http): include browser headers if not set by user ( #1354 )
...
* fix(http): include browser automatic headers if not set by user
close #1349
* fmt
* Update browser-headers.md
* lint
* generate api
2024-05-21 12:43:26 +02:00
Tony
e1d06b93b7
refactor: drop eslint config love ( #1341 )
...
* Drop eslint config love
* More eqeqeq
* Even more
2024-05-18 11:00:09 +02:00
renovate[bot]
faa89850d0
chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0 ( #1228 )
...
* chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0
* actually apply the rules lol
* rebuild
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de >
2024-04-23 00:40:51 +02:00
Amr Bashir
ae56b13a4d
fix(http): allow User-Agent header to be set ( #983 )
...
* fix(http): allow `User-Agent` header to be set
closes #966
* lint
* fix build
2024-02-23 18:32:19 +02:00
ppbl
3f81555fbf
fix(http): response with status code 204 ( #960 )
...
* Fix response construction with status code 204
* run pnpm build
2024-02-21 04:20:46 +02:00
Amr Bashir
ae0cb92438
refactor(http): migrate to tauri's new resource table ( #834 )
...
* refactor(http): migrate to tauri's new resource table
* fmt
* change file
2024-01-02 21:55:57 +02:00
hygkui
1a347203a5
fix: fix http plugin fetch init with connectTimeout. ( #858 )
2023-12-28 18:07:52 +02:00
阿良仔
bfa87da848
feat(http): expose proxy configuration ( #824 )
...
* feat(http): add proxy config
* chore: build iife api
* chore: allow `too_many_arguments`
* improvement
* refactor: restructure code
* improvement
* format
2023-12-20 16:14:12 +02:00
Lucas Fernandes Nogueira
2cf8faa3e1
chore(deps): update to tauri alpha.20, @tauri-apps/api alpha.13 ( #839 )
...
* chore(deps): update to tauri alpha.20, @tauri-apps/api alpha.13
* fix lockfile
2023-12-20 00:18:05 +02:00
Lucas Fernandes Nogueira
5c137365c6
chore: update to tauri alpha.16, api alpha.9 ( #673 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2023-10-20 13:50:18 -03:00
i-c-b
2cb0fa719b
fix(http): remove cmd property from http|fetch invoke, closes #587 ( #588 )
...
* Remove `cmd` property from `http|fetch` invoke
* Build generated JS file
* Create http-remove-cmd-property.md
* Fix incompatible declaration for reading body
Co-authored-by: Louis Bailleau <Bricklou@users.noreply.github.com >
* Build generated JS file
Co-authored-by: Louis Bailleau <Bricklou@users.noreply.github.com >
---------
Co-authored-by: Louis Bailleau <Bricklou@users.noreply.github.com >
2023-09-04 15:45:41 +03:00
Amr Bashir
7d9df7297a
feat(http): refactor and improvements ( #428 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-08-07 08:33:00 -03:00
Fabian-Lars
aba07c27b8
Merge v1 into v2 ( #468 )
...
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de >
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com >
Co-authored-by: Alexandre Dang <124160233+vdang-crabnebula@users.noreply.github.com >
Co-authored-by: Ludea <ludovicw35@hotmail.com >
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
Co-authored-by: Duke Jones <104690+dukejones@users.noreply.github.com >
Co-authored-by: NaokiM03 <37442712+NaokiM03@users.noreply.github.com >
Co-authored-by: Thibault <thibault_poisson@orange.fr >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Blythe <49919035+writeDavid@users.noreply.github.com >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
fix(stronghold): change wrong argument name for `remove` (#422 )
fix(window-state): correctly set decoration state if no saved state exists, fixes #421 (#424 )
fix(stronghold): return null if there is no record (#129 )
fix(window-state): propagate promise (#435 )
closes #432
fix(window-state): manual default implentation (#425 )
fix(window-state): manual default implentation, closes #421
fix(deps): update rust crate iota-crypto to 0.21 (#438 )
fix readme example (#447 )
fix: handle recursive directory correctly (#455 )
fix(deps): update rust crate sqlx to 0.7. plugin-sql msrv is now 1.65 (#464 )
fix(persisted-scope): separately save asset protocol patterns (#459 )
fix(deps): update rust crate iota-crypto to 0.22 (#475 )
fix(deps): update tauri monorepo to v1.4.0 (#482 )
resolve to v15.1.0 (#489 )
fix(deps): update rust crate iota-crypto to 0.23 (#495 )
2023-07-19 14:50:43 -03:00
Lucas Fernandes Nogueira
9bf98f68e7
chore(api): update @since tag to 2.0.0 ( #395 )
2023-05-23 23:44:05 -03:00
Lucas Fernandes Nogueira
b131bc8f7c
feat(plugins): inject API on window.__TAURI__ ( #383 )
2023-05-23 14:20:14 -03:00
Lucas Fernandes Nogueira
f4069f5588
docs: update README.md and remove allowlist information ( #381 )
2023-05-20 20:28:27 -03:00
Lucas Fernandes Nogueira
22991af9f4
feat(plugins): use @tauri-apps namespace on NPM ( #368 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2023-05-17 20:52:53 -03:00
Lucas Fernandes Nogueira
caf8456864
fix: adjust feature flags, wrong zip usage ( #367 )
2023-05-17 18:47:12 -03:00
FabianLars
b730c34923
Run formatter on new plugins
2023-05-03 09:13:24 +02:00
Lucas Nogueira
dabacbe644
fix(http): adjust client id argument name on request command usage
2023-05-02 13:40:57 -03:00
Lucas Fernandes Nogueira
89fb40caac
feat(http): add plugin ( #325 )
2023-04-23 15:34:31 -03:00