mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4540] Enhance HTTP Proxy: Add Bypass Domain Support & Allow Response Header testing in CLI #4847
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4847
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/hoppscotch/hoppscotch/pull/4540
Author: @shobanrajm26
Created: 11/15/2024
Status: 🔄 Open
Base:
main← Head:main📝 Commits (10+)
43f5a37feat: added proxy bypass6a73fb8Merge pull request #1 from shobanrajm26/bypass-proxy05995ffMerge branch 'hoppscotch:main' into bypass-proxya971c5aMerge pull request #2 from shobanrajm26/bypass-proxy6c7d561Merge branch 'hoppscotch:main' into maind855124Merge branch 'hoppscotch:main' into main7ca07e9Merge branch 'main' into maind955128Merge branch 'main' into maina1bb472Merge branch 'hoppscotch:main' into maind98daccfix: 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.
Notes to reviewers
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.