Home | History | Annotate | Download | only in http

Lines Matching defs:host

47      * Requests, indexed by HttpHost (scheme, host, port)
153 ConnectionThread getThread(HttpHost host) {
158 if (connection != null && connection.mHost.equals(host)) {
166 public Connection getConnection(Context context, HttpHost host) {
167 host = RequestQueue.this.determineHost(host);
168 Connection con = mIdleCache.getConnection(host);
171 con = Connection.getConnection(mContext, host, mProxyHost,
260 String host = Proxy.getHost(mContext);
261 if (HttpLog.LOGV) HttpLog.v("RequestQueue.setProxyConfig " + host);
262 if (host == null) {
266 mProxyHost = new HttpHost(host, Proxy.getPort(mContext), "http");
273 * @return proxy host if set, null otherwise
352 public Request getRequest(HttpHost host) {
355 public boolean haveRequest(HttpHost host) {
371 HttpHost host = new HttpHost(uri.getHost(), uri.getPort(), uri.getScheme());
373 Request req = new Request(method, host, mProxyHost, uri.getPath(),
378 host = determineHost(host);
379 Connection conn = Connection.getConnection(mContext, host, mProxyHost,
389 // Chooses between the proxy and the request's host.
390 private HttpHost determineHost(HttpHost host) {
397 return (mProxyHost == null || "https".equals(host.getSchemeName()))
398 ? host : mProxyHost;
454 * @return a request for given host if possible
456 public synchronized Request getRequest(HttpHost host) {
459 if (mPending.containsKey(host)) {
460 LinkedList<Request> reqList = mPending.get(host);
463 mPending.remove(host);
466 if (HttpLog.LOGV) HttpLog.v("RequestQueue.getRequest(" + host + ") => " + ret);
471 * @return true if a request for this host is available
473 public synchronized boolean haveRequest(HttpHost host) {
474 return mPending.containsKey(host);
492 HttpHost host = request.mProxyHost == null ? request.mHost : request.mProxyHost;
494 if (mPending.containsKey(host)) {
495 reqList = mPending.get(host);
498 mPending.put(host, reqList);
536 Connection getConnection(Context context, HttpHost host);