Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 116 for Must (0.36 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

          throw AssertionError("Thread ${Thread.currentThread().name} MUST hold lock on $this")
        }
      }
    
      @Suppress("NOTHING_TO_INLINE")
      internal inline fun Any.assertThreadDoesntHoldLock() {
        if (assertionsEnabled && taskRunner.lock.isHeldByCurrentThread) {
          throw AssertionError("Thread ${Thread.currentThread().name} MUST NOT hold lock on $this")
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  2. docs/features/caching.md

     - **CacheConditionalHit**
     - ConnectionAcquired
     - ... Standard Events...
     - ResponseBodyEnd _(0 bytes)_
     - **CacheHit**
     - ConnectionReleased
     - CallEnd
     
    ## Cache directory
    
    The cache directory must be exclusively owned by a single instance.
    
    Deleting the cache when it is no longer needed can be done.  However this may delete the purpose of the cache
    which is designed to persist between app restarts.
    
    ```kotlin
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/PushObserver.kt

    import java.io.IOException
    import okhttp3.Protocol
    import okio.BufferedSource
    
    /**
     * [HTTP/2][Protocol.HTTP_2] only. Processes server-initiated HTTP requests on the client.
     * Implementations must quickly dispatch callbacks to avoid creating a bottleneck.
     *
     * While [onReset] may occur at any time, the following callbacks are expected in order,
     * correlated by stream ID.
     *
     *  * [onRequest]
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/InterceptorTest.kt

            .build()
        assertFailsWith<IllegalStateException> {
          client.newCall(request).execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "network interceptor $interceptor must call proceed() exactly once",
          )
        }
      }
    
      @Test
      fun networkInterceptorsCannotCallProceedMultipleTimes() {
        server.enqueue(MockResponse())
        server.enqueue(MockResponse())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

        val isMasked = b1 and B1_FLAG_MASK != 0
        if (isMasked == isClient) {
          // Masked payloads must be read on the server. Unmasked payloads must be read on the client.
          throw ProtocolException(
            if (isClient) {
              "Server-sent frames must not be masked."
            } else {
              "Client-sent frames must be masked."
            },
          )
        }
    
    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 (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

    /**
     * A single attempt to connect to a remote server, including these steps:
     *
     *  * [TCP handshake][connectSocket]
     *  * Optional [CONNECT tunnels][connectTunnel]. When using an HTTP proxy to reach an HTTPS server
     *    we must send a `CONNECT` request, and handle authorization challenges from the proxy.
     *  * Optional [TLS handshake][connectTls].
     *
     * Each step may fail. If a retry is possible, a new instance is created with the next plan, which
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_3x.md

        programmatically (with `new Response.Builder()`) you must now always supply
        a message. An empty string `""` is permitted. This value was never null on
        responses returned by OkHttp itself, and it was an old mistake to permit
        application code to omit a message.
    
     *  The challenge's scheme and realm are now non-null. If you are calling
        `new Challenge(scheme, realm)` you must provide non-null values. These were
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java

      public CustomCipherSuites() throws GeneralSecurityException {
        // Configure cipher suites to demonstrate how to customize which cipher suites will be used for
        // an OkHttp request. In order to be selected a cipher suite must be included in both OkHttp's
        // connection spec and in the SSLSocket's enabled cipher suites array. Most applications should
        // not customize the cipher suites list.
        List<CipherSuite> customCipherSuites = asList(
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Mar 14 21:57:42 GMT 2019
    - 6.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     * and a fixed number of values. Each key must match the regex `[a-z0-9_-]{1,64}`. Values are byte
     * sequences, accessible as streams or files. Each value must be between `0` and `Int.MAX_VALUE`
     * bytes in length.
     *
     * The cache stores its data in a directory on the filesystem. This directory must be exclusive to
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

     * part is particularly large or if the underlying source is particularly slow, the [nextPart] call
     * may be slow!
     *
     * Closing a part **does not** close this multipart reader; callers must explicitly close this with
     * [close].
     *
     * [rfc_2046]: http://www.ietf.org/rfc/rfc2046.txt
     */
    class MultipartReader
      @Throws(IOException::class)
      constructor(
        private val source: BufferedSource,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
Back to top