Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for Just (0.31 sec)

  1. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

          val name = header.trimSubstring(pos, equalsSign)
          if (name.startsWith("$")) {
            pos = pairEnd + 1
            continue
          }
    
          // We have either name=value or just a name.
          var value =
            if (equalsSign < pairEnd) {
              header.trimSubstring(equalsSign + 1, pairEnd)
            } else {
              ""
            }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:10:43 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. docs/features/events.md

        .url("https://www.nytimes.com/")
        .build();
    client.newCall(newYorkTimesRequest).enqueue(new Callback() {
      ...
    });
    ```
    
    Running this race over home WiFi shows the Times (`0002`) completes just slightly sooner than the Post (`0001`):
    
    ```
    0001 https://www.washingtonpost.com/
    0001 0.000 callStart
    0002 https://www.nytimes.com/
    0002 0.000 callStart
    0002 0.010 dnsStart
    0001 0.013 dnsStart
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

            init(null, arrayOf<TrustManager>(trustManager), null)
          }.socketFactory
        } catch (e: GeneralSecurityException) {
          throw AssertionError("No System TLS: $e", e) // The system has no TLS. Just give up.
        }
      }
    
      override fun toString(): String = javaClass.simpleName
    
      companion object {
        @Volatile private var platform = findPlatform()
    
        const val INFO = 4
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  4. docs/contribute/concurrency.md

    So we have a dedicated thread for every socket that just reads frames and dispatches them.
    
    The reader thread must never run application-layer code. Otherwise one slow stream can hold up the entire connection.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

       * - The second request discovers it "lost the race" and closes the connection it just opened.
       * - The second request uses the coalesced connection from request1.
       * - The coalesced connection is violently closed after servicing the first request.
       * - The second request discovers the coalesced connection is unhealthy just after acquiring it.
       */
      @Test
      fun coalescedConnectionDestroyedAfterAcquire() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/platform/PlatformTest.kt

      @Test
      fun testToStringIsClassname() {
        assertThat(Platform().toString()).isEqualTo("Platform")
      }
    
      @Test
      fun testNotAndroid() {
        platform.assumeNotAndroid()
    
        // This is tautological so just confirms that it runs.
        assertThat(isAndroid).isEqualTo(false)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/SocketPolicy.kt

       * framing. Ignore the socket completely until the server is shut down.
       */
      object StallSocketAtStart : SocketPolicy
    
      /**
       * Read the request but don't respond to it. Just keep the socket open. For testing read response
       * header timeout issue.
       */
      object NoResponse : SocketPolicy
    
      /**
       * Fail HTTP/2 requests without processing them by sending [http2ErrorCode].
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

            if (sMaxAgeSeconds != -1) append("s-maxage=").append(sMaxAgeSeconds).append(", ")
            if (isPrivate) append("private, ")
            if (isPublic) append("public, ")
            if (mustRevalidate) append("must-revalidate, ")
            if (maxStaleSeconds != -1) append("max-stale=").append(maxStaleSeconds).append(", ")
            if (minFreshSeconds != -1) append("min-fresh=").append(minFreshSeconds).append(", ")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        assertInvalid("http://\uDBFF\uDFFF", "Invalid URL host: \"\uDBFF\uDFFF\"")
      }
    
      @Test
      fun hostnameUri() {
        // Host names are special:
        //
        //  * Several characters are forbidden and must throw exceptions if used.
        //  * They don't use percent escaping at all.
        //  * They use punycode for internationalization.
        //  * URI is much more strict than HttpUrl or URL on what's accepted.
        //
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        // We know that a fresh connection was created if the server recorded a request with sequence
        // number 0. Since the client may have attempted to reuse the broken connection just before
        // creating a fresh connection, the server may have recorded 2 requests at this point. The order
        // of recording is non-deterministic.
        val requestAfter = server.takeRequest()
        assertThat(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
Back to top