[PR #4540] Enhance HTTP Proxy: Add Bypass Domain Support & Allow Response Header testing in CLI #4847

Open
opened 2026-03-17 02:20:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4540
Author: @shobanrajm26
Created: 11/15/2024
Status: 🔄 Open

Base: mainHead: main


📝 Commits (10+)

  • 43f5a37 feat: added proxy bypass
  • 6a73fb8 Merge pull request #1 from shobanrajm26/bypass-proxy
  • 05995ff Merge branch 'hoppscotch:main' into bypass-proxy
  • a971c5a Merge pull request #2 from shobanrajm26/bypass-proxy
  • 6c7d561 Merge branch 'hoppscotch:main' into main
  • d855124 Merge branch 'hoppscotch:main' into main
  • 7ca07e9 Merge branch 'main' into main
  • d955128 Merge branch 'main' into main
  • a1bb472 Merge branch 'hoppscotch:main' into main
  • d98dacc fix: mapped response headers to array object for validating test scripts in cli

📊 Changes

5 files changed (+101 additions, -72 deletions)

View changed files

📝 packages/hoppscotch-cli/src/__tests__/e2e/fixtures/collections/digest-auth-success-coll.json (+1 -1)
📝 packages/hoppscotch-cli/src/__tests__/e2e/fixtures/collections/sample-coll.json (+2 -2)
📝 packages/hoppscotch-js-sandbox/src/node/test-runner.ts (+7 -1)
📝 packages/hoppscotch-selfhost-desktop/src/components/settings/NativeInterceptor.vue (+16 -0)
📝 packages/hoppscotch-selfhost-desktop/src/platform/interceptors/native/index.ts (+75 -68)

📄 Description

Closes #4539 #3412

This PR enhances the Hoppscotch HTTP proxy functionality by adding a "Proxy Bypass" field. This field allows users to specify domains (e.g., example.com, localhost) that should bypass the configured proxy server.

Also, solves an issue preventing response header testing in the CLI

What's changed

The implementation checks if the request's hostname matches any of the specified bypass domains. If a match is found, the request is sent directly without using the proxy.

The response header format has been adjusted to a compatible array structure, allowing tests to correctly validate response headers.

image

Notes to reviewers


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4540 **Author:** [@shobanrajm26](https://github.com/shobanrajm26) **Created:** 11/15/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`43f5a37`](https://github.com/hoppscotch/hoppscotch/commit/43f5a37d611e25867b283a02795981cc4695a648) feat: added proxy bypass - [`6a73fb8`](https://github.com/hoppscotch/hoppscotch/commit/6a73fb877df89b0e4b510ca73e389ff5eb031792) Merge pull request #1 from shobanrajm26/bypass-proxy - [`05995ff`](https://github.com/hoppscotch/hoppscotch/commit/05995ffd80abaff5d065108eed2fb461cad8e682) Merge branch 'hoppscotch:main' into bypass-proxy - [`a971c5a`](https://github.com/hoppscotch/hoppscotch/commit/a971c5add707192e2222c4083fabb16b792c7889) Merge pull request #2 from shobanrajm26/bypass-proxy - [`6c7d561`](https://github.com/hoppscotch/hoppscotch/commit/6c7d561717592448a50097415b533c3ca8c5f324) Merge branch 'hoppscotch:main' into main - [`d855124`](https://github.com/hoppscotch/hoppscotch/commit/d855124464065f322d70c7842fcfcb9e6f0f5b44) Merge branch 'hoppscotch:main' into main - [`7ca07e9`](https://github.com/hoppscotch/hoppscotch/commit/7ca07e94daa7f78c7ebeedd969f2e37476359848) Merge branch 'main' into main - [`d955128`](https://github.com/hoppscotch/hoppscotch/commit/d9551282366cf00f7410061d8166565f24551b2e) Merge branch 'main' into main - [`a1bb472`](https://github.com/hoppscotch/hoppscotch/commit/a1bb47274804dc19462f3bdbaa2a0631a5d1e2b6) Merge branch 'hoppscotch:main' into main - [`d98dacc`](https://github.com/hoppscotch/hoppscotch/commit/d98dacc89ea208b898ace35559d8f1946842ac3d) fix: mapped response headers to array object for validating test scripts in cli ### 📊 Changes **5 files changed** (+101 additions, -72 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-cli/src/__tests__/e2e/fixtures/collections/digest-auth-success-coll.json` (+1 -1) 📝 `packages/hoppscotch-cli/src/__tests__/e2e/fixtures/collections/sample-coll.json` (+2 -2) 📝 `packages/hoppscotch-js-sandbox/src/node/test-runner.ts` (+7 -1) 📝 `packages/hoppscotch-selfhost-desktop/src/components/settings/NativeInterceptor.vue` (+16 -0) 📝 `packages/hoppscotch-selfhost-desktop/src/platform/interceptors/native/index.ts` (+75 -68) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes #4539 #3412 <!-- Issue # here --> This PR enhances the Hoppscotch HTTP proxy functionality by adding a "Proxy Bypass" field. This field allows users to specify domains (e.g., example.com, localhost) that should bypass the configured proxy server. Also, solves an issue preventing response header testing in the CLI ### What's changed The implementation checks if the request's hostname matches any of the specified bypass domains. If a match is found, the request is sent directly without using the proxy. The response header format has been adjusted to a compatible array structure, allowing tests to correctly validate response headers. ![image](https://github.com/user-attachments/assets/0f75150a-795c-402e-99e9-f44827d562b2) <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Notes to reviewers <!-- Any information you feel the reviewer should know about when reviewing your PR --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4847
No description provided.