Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for _key (0.13 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        for (entry in lruEntries.values.toTypedArray()) {
          removeEntry(entry)
        }
        mostRecentTrimFailed = false
      }
    
      private fun validateKey(key: String) {
        require(LEGAL_KEY_PATTERN.matches(key)) { "keys must match regex [a-z0-9_-]{1,120}: \"$key\"" }
      }
    
      /**
       * Returns an iterator over the cache's current entries. This iterator doesn't throw
    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)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

     *    or after it ends.
     *
     *  * **A public key.** This cryptographic key is used for asymmetric encryption digital signatures.
     *    Note that the private key is not a part of the certificate!
     *
     *  * **A signature issued by another certificate's private key.** This mechanism allows a trusted
     *    third-party to endorse a certificate. Third parties should only endorse certificates once
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

    import okhttp3.internal.platform.Platform
    
    /**
     * Example of using a hardware key to perform client auth.
     * Prefer recent JDK builds, and results are temperamental to slight environment changes.
     * Different instructions and configuration may be required for other hardware devices.
     *
     * Using a yubikey device as a SSL key store.
     * https://lauri.võsandi.com/2017/03/yubikey-for-ssh-auth.html
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/Cache.kt

      private var requestCount = 0
    
      val isClosed: Boolean
        get() = cache.isClosed()
    
      internal fun get(request: Request): Response? {
        val key = key(request.url)
        val snapshot: DiskLruCache.Snapshot =
          try {
            cache[key] ?: return null
          } catch (_: IOException) {
            return null // Give up because the cache cannot be read.
          }
    
        val entry: Entry =
          try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  5. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

          "GET /a/deep/path?key=foo%20bar HTTP/1.1",
        )
        val requestUrl = request.requestUrl
        assertThat(requestUrl!!.scheme).isEqualTo("http")
        assertThat(requestUrl.host).isEqualTo(server.hostName)
        assertThat(requestUrl.port).isEqualTo(server.port)
        assertThat(requestUrl.encodedPath).isEqualTo("/a/deep/path")
        assertThat(requestUrl.queryParameter("key")).isEqualTo("foo bar")
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Response.kt

       * Otherwise this returns an empty list of challenges.
       *
       * If a challenge uses the `token68` variant instead of auth params, there is exactly one
       * auth param in the challenge at key null. Invalid headers and challenges are ignored.
       * No semantic validation is done, for example that `Basic` auth must have a `realm`
       * auth param, this is up to the caller that interprets these challenges.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Request.kt

      fun headers(name: String): List<String> = commonHeaders(name)
    
      /** Returns the tag attached with [T] as a key, or null if no tag is attached with that key. */
      @JvmName("reifiedTag")
      inline fun <reified T : Any> tag(): T? = tag(T::class)
    
      /** Returns the tag attached with [type] as a key, or null if no tag is attached with that key. */
      fun <T : Any> tag(type: KClass<T>): T? = type.java.cast(tags[type])
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

        bytesIn.writeByte(0x0a) // Literal name (len = 10)
        bytesIn.writeUtf8("custom-key")
        bytesIn.writeByte(0x0d) // Literal value (len = 13)
        bytesIn.writeUtf8("custom-header")
        hpackReader!!.readHeaders()
        assertThat(hpackReader!!.headerCount).isEqualTo(0)
        assertThat(hpackReader!!.getAndResetHeaderList()).isEqualTo(
          headerEntries("custom-key", "custom-header"),
        )
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 38.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/RequestTest.kt

          builder.addHeader("", "Value")
        }
      }
    
      @Test
      fun headerAllowsTabOnlyInValues() {
        val builder = Request.Builder()
        builder.header("key", "sample\tvalue")
        assertFailsWith<IllegalArgumentException> {
          builder.header("sample\tkey", "value")
        }
      }
    
      @Test
      fun headerForbidsControlCharacters() {
        assertForbiddenHeader("\u0000")
        assertForbiddenHeader("\r")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  10. okhttp-android/src/main/baseline-prof.txt

    HSPLkotlinx/coroutines/CoroutineDispatcher$Key$1;-><clinit>()V
    HSPLkotlinx/coroutines/CoroutineDispatcher$Key$1;-><init>()V
    HSPLkotlinx/coroutines/CoroutineDispatcher$Key;-><init>(Landroidx/lifecycle/viewmodel/R$id;)V
    HSPLkotlinx/coroutines/CoroutineDispatcher;-><clinit>()V
    HSPLkotlinx/coroutines/CoroutineDispatcher;-><init>()V
    HSPLkotlinx/coroutines/CoroutineDispatcher;->get(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top