Skip to content
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

Use custom netrc parser #207

Merged
merged 2 commits into from
Dec 2, 2021
Merged

Use custom netrc parser #207

merged 2 commits into from
Dec 2, 2021

Conversation

blyxxyz
Copy link
Collaborator

@blyxxyz blyxxyz commented Dec 1, 2021

This removes our most obscure direct dependency.

The new parser:

  • Supports comment syntax (like Python/requests/HTTPie)
  • Is more faithful to HTTPie in general
  • Is less strict (maybe a good thing because we don't show errors)
  • Normalizes hostnames (we could've done this with the old parser)
  • Should be more efficient

It's a fair amount of code to add, but I feel better about having it here instead of hiding it in a crate that nobody else uses and we don't control. I hope you agree.

This lets us get rid of our most obscure direct dependency.

The new parser:
- Supports comment syntax (like Python/requests/HTTPie)
- Is more faithful to HTTPie in general
- Is less strict (maybe a good thing because we don't show errors)
- Normalizes hostnames (we could've done this with the old parser)
- Should be more efficient
Copy link
Owner

@ducaale ducaale left a comment

Choose a reason for hiding this comment

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

LGTM

@ducaale ducaale merged commit 031c9a1 into ducaale:develop Dec 2, 2021
@blyxxyz blyxxyz deleted the new-netrc branch December 2, 2021 14:09
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