mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #295] [MERGED] Connection re-use for plugin networking and beta NTLM plugin #216
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/295
Author: @gschier
Created: 11/10/2025
Status: ✅ Merged
Merged: 11/10/2025
Merged by: @gschier
Base:
main← Head:persistent-http📝 Commits (9)
43c4e1dStart separating HTTP connection building98aa449Merge branch 'main' into persistent-http282729aMerge branch 'main' into persistent-http271a781Got NTLM demo working70ae32eRefactor plugin context to pass an ID for transaction re-use74c9967Fix ntml name729503dBetter lock management458df48Clean up old HTTP connections5a61cc0Fix mutation📊 Changes
48 files changed (+942 additions, -555 deletions)
View changed files
📝
package-lock.json(+73 -1)📝
package.json(+1 -0)📝
packages/plugin-runtime-types/src/bindings/gen_events.ts(+2 -2)📝
packages/plugin-runtime/src/PluginHandle.ts(+6 -7)📝
packages/plugin-runtime/src/PluginInstance.ts(+56 -70)📝
packages/plugin-runtime/src/index.ts(+1 -1)➕
plugins/auth-ntlm/package.json(+20 -0)➕
plugins/auth-ntlm/src/index.ts(+76 -0)➕
plugins/auth-ntlm/src/modules.d.ts(+1 -0)➕
plugins/auth-ntlm/tsconfig.json(+3 -0)📝
src-tauri/Cargo.lock(+39 -33)📝
src-tauri/Cargo.toml(+8 -9)📝
src-tauri/src/commands.rs(+5 -5)📝
src-tauri/src/error.rs(+3 -0)📝
src-tauri/src/grpc.rs(+7 -2)📝
src-tauri/src/http_request.rs(+75 -75)📝
src-tauri/src/lib.rs(+17 -17)📝
src-tauri/src/plugin_events.rs(+27 -28)📝
src-tauri/src/render.rs(+2 -2)📝
src-tauri/yaak-crypto/Cargo.toml(+1 -1)...and 28 more files
📄 Description
This PR creates a separate
reqwest.Clientmanager so it can re-use HTTP connections if desired. With this PR, the current request, along with any subsequent requests sent in the plugin execution chain will re-use the same connection pool.This is useful for stateful authentication plugins like NTLM which authenticate once per connection.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.