-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Use 'HttpMessageHandler' instead of 'HttpClientHandler' to support NSUrlSessionHandler on iOS #2503
Conversation
changed CreateHttpClientHandler to CreateHttpMessageHandler
That's a great catch, thanks for contributing! |
Of course. That's a good idea. I will adjust it shortly. 👍 |
Thanks heaps @AlexSchuetz, the commit all looks great! There are a couple of things that need doing to get things through our CI servers though. ChangelogCould you add the following to the CHANGELOG.md in the Fixes section?
Update verify expectationsWe're using Verify to make sure that any changes to the API surface area are deliberate. That means when the API does change, we need to update the relevant verified.txt files. The easiest way to create updated versions of those is to run
You can add those to a new commit with a description like "updated verify files" or something like that and push. Note: You can ignore any errors the build shows relating to profiling... that's a long story and unrelated to this PR. Failed ChecksThere are a couple of other checks that are failing. I'm not actually sure what's going on there. @bitsandfoxes do you have any context for that? |
I did the required commit and also had a look at the error. NSUrlSessionHandler does not support a proxy, but I want to include the code for setting it anyway, because if it ever does noone will remember adjusting it here. |
I investigated a bit more. It is a code analysis error. Since NSUrlSessionHandler.Proxy is not supported. If you think I should remove the code in question and just print out that a proxy for NSUrlSessionHandler is not supported, that would be fine as well. I don't know if the Proxy-property will ever be implemented. I think iOS and MAC require a proxy to be defined elsewhere. |
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.
Left some minor suggestions but generally lgtm
…of SentryOptions.CreateHttpClientHandler
@bruno-garcia I followed your suggestions. Am I supposed to resolve those conversations now? |
Yes. Everything that has been addressed can be marked as resolved. |
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 looks good to me! Thanks again for contributing!
@bitsandfoxes @bruno-garcia You are welcome. Thank's for your support and review. |
fixing #2502
Breaking change: