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

feat(common): new *Option to configure HTTP proxy #12766

Merged
merged 4 commits into from Sep 29, 2023

Conversation

coryan
Copy link
Member

@coryan coryan commented Sep 29, 2023

Applications can use this option to configure the HTTP proxy settings. Some applications need to set the username and password and this cannot be done through environment variables (for libcurl).

Fixes #12764


This change is Reviewable

@coryan coryan temporarily deployed to internal September 29, 2023 16:45 — with GitHub Actions Inactive
@coryan coryan marked this pull request as ready for review September 29, 2023 17:54
@coryan coryan requested a review from a team as a code owner September 29, 2023 17:54
@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (731402e) 93.59% compared to head (769cf7c) 93.59%.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #12766    +/-   ##
========================================
  Coverage   93.59%   93.59%            
========================================
  Files        2081     2082     +1     
  Lines      182874   182987   +113     
========================================
+ Hits       171162   171272   +110     
- Misses      11712    11715     +3     
Files Coverage Δ
google/cloud/common_options.h 100.00% <100.00%> (ø)
google/cloud/grpc_options.cc 100.00% <100.00%> (+1.92%) ⬆️
google/cloud/grpc_options_test.cc 93.80% <100.00%> (+0.58%) ⬆️
google/cloud/internal/curl_impl.h 100.00% <ø> (ø)
google/cloud/internal/curl_impl_test.cc 100.00% <100.00%> (ø)
google/cloud/internal/curl_impl.cc 88.47% <77.77%> (-0.71%) ⬇️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

google/cloud/common_options.h Outdated Show resolved Hide resolved
google/cloud/common_options.h Outdated Show resolved Hide resolved
google/cloud/internal/curl_impl.cc Outdated Show resolved Hide resolved
@coryan coryan temporarily deployed to internal September 29, 2023 19:43 — with GitHub Actions Inactive
@coryan coryan temporarily deployed to internal September 29, 2023 19:57 — with GitHub Actions Inactive
@coryan coryan enabled auto-merge (squash) September 29, 2023 20:33
*
* The full URI is constructed as:
*
* {scheme}://{username}:{password}@{host}:{port}
Copy link
Member

Choose a reason for hiding this comment

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

nit: s/host/hostname/ ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed, thanks.

Applications can use this option to configure the HTTP proxy settings.
Some applications need to set the username and password and this cannot
be done through environment variables (for `libcurl`).
@coryan coryan temporarily deployed to internal September 29, 2023 20:51 — with GitHub Actions Inactive
@coryan coryan enabled auto-merge (squash) September 29, 2023 22:10
@coryan coryan merged commit 8596c9f into googleapis:main Sep 29, 2023
54 checks passed
@coryan coryan deleted the feat-support-proxy-options branch September 30, 2023 13:42
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.

Add *Option to configure the HTTP proxy
3 participants