Home | History | Annotate | Download | only in http

Lines Matching refs:host

54      * Requests, indexed by HttpHost (scheme, host, port)
160 ConnectionThread getThread(HttpHost host) {
165 if (connection != null && connection.mHost.equals(host)) {
173 public Connection getConnection(Context context, HttpHost host) {
174 host = RequestQueue.this.determineHost(host);
175 Connection con = mIdleCache.getConnection(host);
178 con = Connection.getConnection(mContext, host, mProxyHost,
267 String host = Proxy.getHost(mContext);
268 if (HttpLog.LOGV) HttpLog.v("RequestQueue.setProxyConfig " + host);
269 if (host == null) {
273 mProxyHost = new HttpHost(host, Proxy.getPort(mContext), "http");
280 * @return proxy host if set, null otherwise
359 public Request getRequest(HttpHost host) {
362 public boolean haveRequest(HttpHost host) {
378 HttpHost host = new HttpHost(uri.getHost(), uri.getPort(), uri.getScheme());
380 Request req = new Request(method, host, mProxyHost, uri.getPath(),
385 host = determineHost(host);
386 Connection conn = Connection.getConnection(mContext, host, mProxyHost,
396 // Chooses between the proxy and the request's host.
397 private HttpHost determineHost(HttpHost host) {
404 return (mProxyHost == null || "https".equals(host.getSchemeName()))
405 ? host : mProxyHost;
461 * @return a request for given host if possible
463 public synchronized Request getRequest(HttpHost host) {
466 if (mPending.containsKey(host)) {
467 LinkedList<Request> reqList = mPending.get(host);
470 mPending.remove(host);
473 if (HttpLog.LOGV) HttpLog.v("RequestQueue.getRequest(" + host + ") => " + ret);
478 * @return true if a request for this host is available
480 public synchronized boolean haveRequest(HttpHost host) {
481 return mPending.containsKey(host);
499 HttpHost host = request.mProxyHost == null ? request.mHost : request.mProxyHost;
501 if (mPending.containsKey(host)) {
502 reqList = mPending.get(host);
505 mPending.put(host, reqList);
543 Connection getConnection(Context context, HttpHost host);