issues
search
aslamplr
/
gh-cli
🖥 Yet another unofficial GitHub CLI! Minimalistic, opinionated, and unofficial by default.
https://github.com/aslamplr/gh-cli#gh-cli
MIT License
8
stars
1
forks
source link
Refactor: use reqwest instead of hyper
#113
Closed
aslamplr
closed
4 years ago
aslamplr
commented
4 years ago
Use reqwest for HTTP client and remove direct dependency over hyper and tls implementations.
Add HttpClient wrapper and initialized in RepoRequest to ensure single http_client for any request chain.
Initialize http_client in RepoRequest with auth_token and avoid all plumbing of auth_token.
Remove unwanted lazy_static initialization of Regex for git repo name extraction. Which is used only once.