Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 133 for Locations (0.04 sec)

  1. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

          MockResponse
            .Builder()
            .code(HttpURLConnection.HTTP_MOVED_TEMP)
            .addHeader("Location: " + server.url("/new-path"))
            .body("This page has moved!")
            .build(),
        )
        server.enqueue(
          MockResponse
            .Builder()
            .body("This is the new location!")
            .build(),
        )
        val connection = server.url("/").toUrl().openConnection()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  2. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

      val callTimeout: Int by option(
        "--call-timeout",
      ).help(
        "Maximum time allowed for the entire call (seconds)",
      ).int()
        .default(DEFAULT_TIMEOUT)
    
      val followRedirects: Boolean by option("-L", "--location").help("Follow redirects").flag()
    
      val allowInsecure: Boolean by option("-k", "--insecure").help("Allow connections to SSL sites without certs").flag()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

            .Builder()
            .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS))
            .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS))
            .code(HttpURLConnection.HTTP_MOVED_PERM)
            .addHeader("Location: /foo")
            .build(),
        )
        server.enqueue(
          MockResponse
            .Builder()
            .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt

        val redirectSource = MockWebServer()
        redirectSource.enqueue(
          MockResponse
            .Builder()
            .code(HttpURLConnection.HTTP_MOVED_TEMP)
            .addHeader("Location: $redirectTargetUrl")
            .build(),
        )
        redirectSource.start()
        val redirectSourceUrl = urlWithIpAddress(redirectSource, "/")
        val cookieManager = CookieManager(null, CookiePolicy.ACCEPT_ORIGINAL_SERVER)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/Cache.java

       *
       * <ul>
       *   <li>consolidation of the loader logic to {@linkplain CacheBuilder#build(CacheLoader) a single
       *       authoritative location}
       *   <li>{@linkplain LoadingCache#refresh refreshing of entries}, including {@linkplain
       *       CacheBuilder#refreshAfterWrite automated refreshing}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

       *  * For client timeouts (408: Request Time-Out.)
       *  * For server failures (503: Service Unavailable.)
       *
       * Response header values like `Location` and `Retry-After` are also considered.
       *
       * Client configuration may be used to make follow-up decisions, such as:
       *
       *  * [OkHttpClient.followRedirects] must be true to follow redirects.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

            headers = headersOf("Location", "/foo"),
            body = "This page has moved!",
          ),
        )
        server.enqueue(MockResponse(body = "This is the new location!"))
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("This is the new location!")
        val request1 = server.takeRequest()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

        for (E e : getSubjectGenerator().order(new ArrayList<E>(getSampleElements()))) {
          list.add(e);
        }
        return unmodifiableList(list);
      }
    
      /**
       * @return a suitable location for a null element, to use when initializing containers for tests
       *     that involve a null element being present.
       */
      protected int getNullLocation() {
        return getNumElements() / 2;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactHashSet.java

              entryIndex = next - 1;
              entry = entries[entryIndex];
              next = CompactHashing.getNext(entry, mask);
            } while (next != srcNext);
            // here, entries[entryIndex] points to the old entry location; update it
            entries[entryIndex] = CompactHashing.maskCombine(entry, dstIndex + 1, mask);
          }
        } else {
          elements[dstIndex] = null;
          entries[dstIndex] = 0;
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableMap.java

       *
       * The basic data structure is described in https://en.wikipedia.org/wiki/Open_addressing.
       * The pointer to a key is stored in hashTable[Hashing.smear(key.hashCode()) % table.length],
       * save that if that location is already full, we try the next index, and the next, until we
       * find an empty table position.  Since the table has a power-of-two size, we use
       * & (table.length - 1) instead of % table.length, though.
       */
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.5K bytes
    - Viewed (0)
Back to top