-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Support HTTP proxies #337
Comments
Thanks for bringing this up! I didn't look into the details yet, but if you think this can be solved by following hypers own conventions, the google crates should certainly follow suit. PRs are welcome. In case you want to take it on, please only submit changes to |
Thanks for the quick response, @Byron! I'm pretty new to Rust, and totally new to Mako, but I'll share what I've got so far. From there, if you can provide some guidance I'd be happy to write a fix, or if you decide it would be more efficient to do it yourself, of course that's great too. The approach I have in mind is to update Hub's This is more or less what hyper does with the Link to the So my thinking is that we:
3b is the part I feel least equipped to tackle at this point, but I'd love a sanity check on the rest too. I'm sure I don't have a complete picture yet. 😄 Edit: tower::Service --> tower_service::Service, since that's how hyper_rustls does it. |
Thanks a lot for the summary! It looks like Maybe there should also be a point 4) which updates the CLI code as it will instantiate an API hub as well. As to how to proceed from here, maybe it helps to share my typical workflow. Usually I use the I hope that helps. |
I discovered that this is also an issue in yup-oauth2; submitted a PR to fix it there as well. |
Switch the constraints on Hub types to use public traits based on tower::service, as recommended by Hyper. This enables support for custom connectors beyond hyper_rustls::HttpsConnector Closes Byron#337.
Switch the constraints on Hub types to use public traits based on tower::service, as recommended by Hyper. This enables support for custom connectors beyond hyper_rustls::HttpsConnector Closes Byron#337.
Switch the constraints on Hub types to use public traits based on tower::service, as recommended by Hyper. This enables support for custom connectors beyond hyper_rustls::HttpsConnector Closes Byron#337.
As written, Hubs require clients to use a
hyper_rustls::HttpsConnector
:google-apis-rs/src/mako/api/api.rs.mako
Line 52 in 93de38d
Unfortunately, this connector doesn't support HTTP proxies (see related issue).
Can we make Hub::new() more generic, to enable customized connectors like those of
hyper_proxy
? This would also follow the convention of hyper's own builder.The text was updated successfully, but these errors were encountered: