Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
LucienRay wants to merge 7 commits into tldr-pages:main
base: main
Choose a base branch
Loading
from LucienRay:main
Open

feat: add proxy support #287

LucienRay wants to merge 7 commits into tldr-pages:main from LucienRay:main

Conversation

Copy link

@LucienRay LucienRay commented Jun 6, 2025

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

kbdharun reacted with thumbs up emoji
@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
edited
Loading

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
edited
Loading

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
Reviewers

@owenvoke owenvoke owenvoke left review comments

@kbdharun kbdharun Awaiting requested review from kbdharun

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /