-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update the proxyPolicy and constants #7069
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly JS style nits, but some functional questions in here too.
@xirzec, @jeremymeng, Can we take another look at this PR? |
I would expect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some question and suggestions
@jongio do you want to evaluate this PR? NO_PROXY and ALL_PROXY Env vars. |
@zzhxiaofeng - This PR needs to be re-evaluated. It looks like HTTP_PROXY has moved to here: https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-http/src/policies/proxyPolicy.ts |
@jeremymeng I have used function |
The I think
public sendRequest(request: WebResourceLike): Promise<HttpOperationResponse> {
if (!isBypassed(request.url) && !request.proxySettings) {
request.proxySettings = this.proxySettings;
}
return this._nextPolicy.sendRequest(request);
} |
@jeremymeng Thank you. I have updated the code here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks good, there are just a few little style things I'd like to clean up before merging.
Good job on this! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Merging. Thanks @zzhxiaofeng! |
* update to latest version of azure-sdk-for-js * udpate core-http.api.md * update proxyPolicy.ts * update proxyPolicy.ts according to comments
Add the NO_PROXY and ALL_PROXY to constants, and update the proxyPolicy to support env vars for NO_PROXY and ALL_PROXY Azure/azure-sdk-for-java#5967