api-client/packages/hoppscotch-desktop/src-tauri
Shreyas ecf7d2507a
feat(relay): control redirect follow (#5508)
Add per-domain toggle to disable automatic HTTP redirect following in
 the Native and Agent interceptors. When disabled, requests return the
 redirect response (status code, headers, body) without following the
 Location header.

 Previously HTTP redirects were always followed (on browser, can't do
 much about that, see
 https://fetch.spec.whatwg.org/#atomic-http-redirect-handling) without
 option to inspect the redirect response itself. This prevented
 developers from accessing redirect metadata needed when testing OAuth
 flows (PKCE where intermediate responses contain authorization tokens),
 authentication endpoints that return codes in Location headers with 302
 status, and debugging API redirect chains. But on the desktop app,
 redirects were just never followed, creating the opposite effect.

 The browser's fetch API applies atomic HTTP redirect handling per spec,
 making it impossible to intercept redirects and inspect their responses.
 The Native and Agent interceptors use curl and native HTTP clients
 respectively, both supporting redirect control, making this feature
 viable for these specific interceptors. (Proxyscotch tbd).
2025-10-27 17:41:58 +05:30
..
capabilities feat(desktop): portable phase-2 app loader infra (#5341) 2025-08-26 20:48:31 +05:30
icons feat: platform independent core and the new desktop app (#4684) 2025-02-28 00:01:25 +05:30
src feat(desktop): portable phase-2 app loader infra (#5341) 2025-08-26 20:48:31 +05:30
.gitignore feat: platform independent core and the new desktop app (#4684) 2025-02-28 00:01:25 +05:30
build.rs feat(desktop): portable phase-1 foundational: infra & build (#5259) 2025-07-24 15:45:48 +05:30
Cargo.lock feat(relay): control redirect follow (#5508) 2025-10-27 17:41:58 +05:30
Cargo.toml feat(relay): control redirect follow (#5508) 2025-10-27 17:41:58 +05:30
tauri.conf.json chore: bump version to 2025.9.2 2025-10-07 17:22:25 +05:30
tauri.portable.macos.conf.json chore: bump version to 2025.9.2 2025-10-07 17:22:25 +05:30
tauri.portable.windows.conf.json chore: bump version to 2025.9.2 2025-10-07 17:22:25 +05:30