Lines Matching refs:to

8  * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
97 // retryPostProp is true by default so as to preserve behavior
107 * through a Netscape proxy to a server that sent me a keep-alive
109 * after 5 sec. So we have to hard code our effective timeout to
114 /** whether the response is to be cached */
167 * to true if the system property http.keepAlive isn't set.
200 protected HttpClient(URL url, Proxy p, int to) throws IOException {
208 setConnectTimeout(to);
225 * to bypass implicit proxying. Sometimes we need to be using tunneling
227 * for example when we don't want the application level data to become
228 * visible to third parties.
230 * @param url the URL to which we're connecting
231 * @param proxy proxy to use for this URL (e.g. forwarding)
232 * @param proxyPort proxy port to use for this URL
233 * @param proxyDisabled true to disable default proxying
243 boolean proxyDisabled, int to)
246 newHttpProxy(proxyHost, proxyPort, "http"), to);
249 /* This class has no public constructor for HTTP. This method is used to
250 * get an HttpClient to the specifed URL. If there's currently an
251 * active HttpClient to that server/port, you'll get that one.
263 public static HttpClient New(URL url, Proxy p, int to, boolean useCache,
295 // We cannot return this connection to the cache as it's
298 // to the same host will not use the same proxy.
308 ret = new HttpClient(url, p, to);
323 public static HttpClient New(URL url, Proxy p, int to,
326 return New(url, p, to, true, httpuc);
337 boolean useCache, int to,
341 to, useCache, httpuc);
344 /* return it to the cache as still usable, if:
362 * Return it to the cache.
403 assert false : "Duplicate put to keep alive cache";
415 * Close an idle connection to this URL (if it exists in the
425 /* We're very particular here about what our InputStream to the server
465 * may need to override this. An example is Https, where for
466 * direct connection to the origin server, ssl handshake needs to
467 * be done; for proxy tunneling, the socket needs to be converted
471 // NO-OP. Needs to be overwritten by HttpsClient
621 * If this isn't valid HTTP, then we don't try to parse a header
623 * and instead just queue up the output stream to it's very beginning.
635 // We don't want to retry the request when the app. sets a timeout
671 * If this isn't valid HTTP, then we don't try to parse a header
673 * and instead just queue up the output stream to it's very beginning.
702 // check if there are any applicable cookies to set (in cache)
740 * the server says to close.
804 * Set things up to parse the entity body of the reply.
807 * no entity body to parse.
869 // to wrap the input stream with KeepAliveStream/MeteredStream.
902 // need to wrap an unknown length input stream.
957 // failedOnce is used to determine if a request should be retried.