Added a template method to Request to configure HttpURLConnection before its use