Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for doTest (0.2 sec)

  1. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

            .add("WWW-Authenticate", "Digest,Basic realm=\"myrealm\"")
            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate")).containsExactly(
          Challenge("Digest", mapOf()),
          Challenge("Basic", mapOf("realm" to "myrealm")),
        )
      }
    
      @Test fun multipleSeparatorsBetweenChallenges() {
        val headers =
          Headers.Builder()
            .add("WWW-Authenticate", "Digest,,,, Basic ,,realm=\"myrealm\"")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertThat(calls.size).isEqualTo(0)
      }
    
      // Digest auth is currently unsupported. Test that digest requests should fail reasonably.
      // http://code.google.com/p/android/issues/detail?id=11140
      @Test
      fun digestAuthentication() {
        val calls =
          authCallsForHeader(
            "WWW-Authenticate: Digest " +
              "realm=\"******@****.***\", qop=\"auth,auth-int\", " +
    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)
  3. okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt

          // OkHttp does not reject invalid Punycode.
          "xn--a",
          "xn--a.ß",
          "xn--a.xn--zca",
          "xn--a-yoc",
          // OkHttp doesn't reject U+FFFD encoded in Punycode.
          "xn--zn7c.com",
          // OkHttp doesn't reject a U+200D. https://www.rfc-editor.org/rfc/rfc5892.html#appendix-A.2
          "xn--1ug.example",
          // OkHttp doesn't implement CheckJoiners.
          "\u200D.example",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. buildSrc/src/main/kotlin/Osgi.kt

        setClasspath(osgi.compileClasspath + sourceSets["main"].compileClasspath)
        bnd(*bndProperties)
      }
      // Call the convention when the task has finished, to modify the jar to contain OSGi metadata.
      jarTask.doLast {
        bundleExtension.buildAction().execute(this)
      }
    }
    
    val Project.sourceSets: SourceSetContainer
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

     * stale).
     */
    class CacheStrategy internal constructor(
      /** The request to send on the network, or null if this call doesn't use the network. */
      val networkRequest: Request?,
      /** The cached response to return or validate; or null if this call doesn't use a cache. */
      val cacheResponse: Response?,
    ) {
      class Factory(
        private val nowMillis: Long,
        internal val request: Request,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

        assertThat("⑴".map()).isEqualTo("(1)")
      }
    
      @Test fun outOfBounds() {
        assertFailsWith<IllegalArgumentException> {
          table.map(-1, Buffer())
        }
        table.map(0, Buffer()) // Lowest legal code point.
        table.map(0x10ffff, Buffer()) // Highest legal code point.
        assertFailsWith<IllegalArgumentException> {
          table.map(0x110000, Buffer())
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

                  condition.signalAll()
                }
              }
            }
          }
    
          // Update the connection flow control, as this is a shared resource.
          // Even if our stream doesn't need more data, others might.
          // But delay updating the stream flow control until that stream has been
          // consumed
          updateConnectionFlowControl(byteCount)
    
          // Notify that buffer size changed
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

            writeByte('%'.code)
            writeByte(HEX_DIGITS[b shr 4 and 0xf].code)
            writeByte(HEX_DIGITS[b and 0xf].code)
          }
        } else {
          // This character doesn't need encoding. Just copy it over.
          writeUtf8CodePoint(codePoint)
        }
        i += Character.charCount(codePoint)
      }
    }
    
    /**
     * Returns a substring of `input` on the range `[pos..limit)` with the following
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

      }
    }
    
    internal fun String.read14BitInt(index: Int): Int {
      val b0 = this[index].code
      val b1 = this[index + 1].code
      return (b0 shl 7) + b1
    }
    
    /**
     * An extremely generic binary search that doesn't know what data it's searching over. The caller
     * provides indexes and a comparison function, and this calls that function iteratively.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

          const val OPENJSSE_PROPERTY = "openjsse"
          const val BOUNCYCASTLE_PROPERTY = "bouncycastle"
          const val LOOM_PROPERTY = "loom"
    
          /**
           * For whatever reason our BouncyCastle provider doesn't work with ECDSA keys. Just configure it
           * to use RSA-2048 instead.
           *
           * (We otherwise prefer ECDSA because it's faster.)
           */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
Back to top