Skip to content

feat: add proxy support #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

feat: add proxy support #287

wants to merge 7 commits into from

Conversation

LucienRay
Copy link

This PR introduces proxy support for network requests, allowing users to route traffic through a specified proxy server.

@kbdharun kbdharun self-requested a review June 6, 2025 16:29
@@ -648,6 +677,13 @@ def create_parser() -> ArgumentParser:
action="store_true",
help='Display longform options over shortform')

parser.add_argument('-x', '--proxy',
Copy link
Member

@owenvoke owenvoke Jun 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the -x shorthand is taken from cURL (or similar)? 👀 Do we want to leave that reserved in case something is added in future with that shorthand in the client spec?

Copy link
Author

@LucienRay LucienRay Jun 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I actually borrowed that from how cURL uses it for proxies.

About that client spec reservation point, I wasn't really sure if we had a standard for short flags yet, or if there's one planned. If -x might clash with anything down the line, I'm totally open to changing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants