title: Common class for network calls in Android
body: <p>I am trying to write a class for an existing project where all network calls (including Webview) can be 'controlled'. 
  Basically want to force use HTTPS for all kinds of network calls or to the worst case, block all HTTP calls.</p>
  
  <p>I found some solutions for API level above 23, but still trying to figure out for lower levels.</p>
  
  <p>Some of the approach I found for API level 23 and above were adding android:usesCleartextTraffic="false" or networkSecurityConfig in AndroidManifest. </p>
  
  <p>But these will not work in API level below 23, Any suggestions or recommendations for solving this?</p>
  
  <p>Thanks in Advance and Happy coding</p>