Skip to content

feat: add proxy support - #287

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

feat: add proxy support#287
LucienRay wants to merge 7 commits into
tldr-pages:mainfrom
LucienRay:main

Conversation

@LucienRay

Copy link
Copy Markdown

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
Comment thread tldr.py
action="store_true",
help='Display longform options over shortform')

parser.add_argument('-x', '--proxy',

@owenvoke owenvoke Jun 9, 2025

Copy link
Copy Markdown
Member

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?

@LucienRay LucienRay Jun 9, 2025

Copy link
Copy Markdown
Author

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!

@sebastiaanspeck

Copy link
Copy Markdown
Member

Any update on this PR?

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.

3 participants