     (when max-redirects (.setMaxRedirects config max-redirects))
     (.build config)))
 
-(defn get-route-planner
+(defn ^HttpRoutePlanner get-route-planner
   "Return an HttpRoutePlanner that either use the supplied proxy settings
   if any, or the JVM/system proxy settings otherwise"
-  [proxy-host proxy-port proxy-ignore-hosts http-url]
+  [^String proxy-host ^Long proxy-port proxy-ignore-hosts http-url]
   (let [url (URL. http-url)]
     (if (and (not (contains? (set proxy-ignore-hosts) (.getHost url)))
              proxy-host)

  (clojure.pprint/pprint (bean http-req)))

(defn- build-response-map
  [^HttpResponse response req conn-mgr context]
  (let [^HttpEntity entity (.getEntity response)
        status (.getStatusLine response)
        protocol-version (.getProtocolVersion status)]

           (org.apache.http.client.protocol HttpClientContext)
           (org.apache.http.config RegistryBuilder)
           (org.apache.http.conn HttpClientConnectionManager)
           (org.apache.http.conn.routing HttpRoute HttpRoutePlanner)
           (org.apache.http.conn.ssl BrowserCompatHostnameVerifier
                                     SSLConnectionSocketFactory SSLContexts)
           (org.apache.http.conn.socket PlainConnectionSocketFactory)
