-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How to use proxy with dio_http2_adapter #1259
Comments
the same question for me. Anyone know? |
you can use charles + postern to catch http2, may be need to trust charles certificate on your phone |
No, you can't set proxy with this implementation of dio_http 2_adapter. To get proxy host and port you need to ask system like this in android: System.getProperty("http.proxyHost"), System.getProperty("http.proxyPort") |
### New Pull Request Checklist - [X] I have read the [Documentation](https://pub.dartlang.org/packages/dio) - [X] I have searched for a similar pull request in the [project](https://github.com/flutterchina/dio/pulls) and found none - [X] I have updated this branch with the latest `develop` to avoid conflicts (via merge from master or rebase) - [x] I have added the required tests to prove the fix/feature I am adding - [X] I have updated the documentation (if necessary) - [X] I have run the tests and they pass This merge request fixes / refers to the following issues: #1259 #905 ### Pull Request Description Added proxy tunnel to http2 adaptor --------- Signed-off-by: Alexey Z <[email protected]> Signed-off-by: Alex Li <[email protected]> Co-authored-by: Alexey Zdorovykh <[email protected]> Co-authored-by: Alex Li <[email protected]>
I can set proxy with default httpClientAdapter.
But with dio_http2_adapter, cannot set proxy.
Anyone know how to set proxy with dio_http2_adapter?
The text was updated successfully, but these errors were encountered: