Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for doTest (0.27 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. build.gradle.kts

      version = "5.0.0-SNAPSHOT"
    
      repositories {
        mavenCentral()
        google()
      }
    
      tasks.create("downloadDependencies") {
        description = "Download all dependencies to the Gradle cache"
        doLast {
          for (configuration in configurations) {
            if (configuration.isCanBeResolved) {
              configuration.files
            }
          }
        }
      }
    
      normalization {
        runtimeClasspath {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:32:42 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

     * token68:
     *
     * ```
     * WWW-Authenticate: Digest foo=bar
     * WWW-Authenticate: Digest foo=
     * ```
     *
     * Similarly, the first line has one challenge and the second line has two challenges:
     *
     * ```
     * WWW-Authenticate: Digest ,foo=bar
     * WWW-Authenticate: Digest ,foo
     * ```
     */
    fun Headers.parseChallenges(headerName: String): List<Challenge> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt

    import okhttp3.internal.SuppressSignatureCheck
    import okhttp3.internal.tls.CertificateChainCleaner
    
    /**
     * Android implementation of CertificateChainCleaner using direct Android API calls.
     * Not used if X509TrustManager doesn't implement [X509TrustManager.checkServerTrusted] with
     * an additional host param.
     */
    internal class AndroidCertificateChainCleaner(
      private val trustManager: X509TrustManager,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

       * ```
       */
      fun withTag(
        tagClass: Int = DerHeader.TAG_CLASS_CONTEXT_SPECIFIC,
        tag: Long,
      ): BasicDerAdapter<T> = copy(tagClass = tagClass, tag = tag)
    
      /** Returns a copy of this adapter that doesn't encode values equal to [defaultValue]. */
      fun optional(defaultValue: T? = null): BasicDerAdapter<T> = copy(isOptional = true, defaultValue = defaultValue)
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

     * it easy to get sample values to use in such tests.
     *
     * This class is pretty fast and loose with default values: it attempts to provide values that are
     * well-formed, but doesn't guarantee values are internally consistent. Callers must take care to
     * configure the factory when sample values impact the correctness of the test.
     */
    class TestValueFactory : Closeable {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

        @Throws(IOException::class)
        fun parse(responseHeaders: Headers): WebSocketExtensions {
          // Note that this code does case-insensitive comparisons, even though the spec doesn't specify
          // whether extension tokens and parameters are case-insensitive or not.
    
          var compressionEnabled = false
          var clientMaxWindowBits: Int? = null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cache.kt

     *
     * The best way to improve the cache hit rate is by configuring the web server to return cacheable
     * responses. Although this client honors all [HTTP/1.1 (RFC 7234)][rfc_7234] cache headers, it
     * doesn't cache partial responses.
     *
     * ## Force a Network Response
     *
     * In some situations, such as after a user clicks a 'refresh' button, it may be necessary to skip
    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)
  10. okhttp/src/test/java/okhttp3/CallTest.kt

          MockResponse.Builder()
            .body(gzippedBody)
            .addHeader("Content-Encoding: gzip")
            .build(),
        )
    
        // Confirm that the user request doesn't have Accept-Encoding, and the user
        // response doesn't have a Content-Encoding or Content-Length.
        val userResponse = executeSynchronously("/")
        userResponse.assertCode(200)
          .assertRequestHeader("Accept-Encoding")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
Back to top