Code example for HttpHost

0
            int proxyPort = Proxy.getPort(context);
            if (proxyPort == -1) {
                proxyPort = Proxy.getDefaultPort();
            } 
            if (proxyHost != null && proxyPort > -1) {
                HttpHost proxy = new HttpHost(proxyHost, proxyPort);
                httpParams.setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
            } else { 
                httpParams.setParameter(ConnRoutePNames.DEFAULT_PROXY, null);
            } 
        } else { 
            httpParams.setParameter(ConnRoutePNames.DEFAULT_PROXY, null);
        } 
    } 
 
    public IgnitedHttpRequest get(String url) {
        return get(url, false);
    } 
 
    public IgnitedHttpRequest get(String url, boolean cached) {