Therzok / MonoDevelop.Analyzers

Set of analyzers that can be used when working on MonoDevelop (and its dependencies)
MIT License
2 stars 2 forks source link

Creating WebRequests #13

Open mrward opened 6 years ago

mrward commented 6 years ago

Currently we have the WebRequestHelper which adds some extra proxy support. There is some code that directly uses WebRequest in md-addins which bypasses the WebRequestHelper. We could detect this and flag it.

In the future we will be using HttpClient and will have some common code that adds proxy auth support. We could detect code that creates its own instances of the HttpClient which bypasses the custom auth support. The WebRequest check will still be valid here when using HttpClient.