Closed matthewmichihara closed 9 years ago
Some libraries like Google's Volley allow constructing HTTP clients with custom SSLSocketFactory's, so instead of copy pasting some SSLSocketFactory construction boiler-plate code, I thought I'd try to DRY things up by creating this helper method.
I've tested with success.
I also tested these changes piping into volley HurlStack and seems good so far.
This would be good for OkHttp support as well.
Some libraries like Google's Volley allow constructing HTTP clients with custom SSLSocketFactory's, so instead of copy pasting some SSLSocketFactory construction boiler-plate code, I thought I'd try to DRY things up by creating this helper method.