-
Notifications
You must be signed in to change notification settings - Fork 22
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
add proxy support, make httpClient instance variable [#15] #16
Conversation
@OGKevin Had to make HttpClient an instance variable for a case if they want to use two different contexts with two different proxies within one process :) |
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.
Create issue for TODO please
|
||
private HttpClientHandler CreateHttpClientHandler() | ||
{ | ||
// TODO: Add HTTP Public Key Pinning. It is needed to prevent possible man-in-the-middle attacks using |
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.
Is this TODO supposed to be here ? If so could you remove it and create an issue for it with a link to this particular file and line ?
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 TODO is supposed to be there, and we would like to keep it there as TODO. Issue can be created additionally (you can do it if you wish :P).
|
||
public bool IsBypassed(Uri host) | ||
{ | ||
return false; /* Proxy all requests */ |
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.
Method doc 🤔 ?
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.
Nope, because this refers to the documentation. false
means "Nothing is bypassed" which means "proxy all requests".
public BunqProxy(string proxyUri) | ||
: this(new Uri(proxyUri)) | ||
{ | ||
} |
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.
Is there really a need for 2 lines for this 😝 can this be reformatted ?
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.
@OGKevin this is in accordance with C# coding standard
No description provided.