Revert "Support specifying custom URLStreamHandler"

This reverts commit 816c7ed8691c9f25c7a54b20e51c47705d8ff88c.
Support specifying custom base URL and SSL context