Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for digest (0.15 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/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)
  3. docs/works_with_okhttp.md

     * [OkHttp AWS Signer](https://github.com/babbel/okhttp-aws-signer): AWS V4 signing algorithm for OkHttp requests
     * [okhttp-digest](https://github.com/rburgst/okhttp-digest): A digest authenticator for OkHttp.
     * [OkHttp Idling Resource](https://github.com/JakeWharton/okhttp-idling-resource): An Espresso IdlingResource for OkHttp.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Jun 08 18:15:23 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

        /**
         * This type is syntactically identical to "multipart/mixed", but the semantics are different.
         * In particular, in a digest, the default `Content-Type` value for a body part is changed from
         * "text/plain" to "message/rfc822".
         */
        @JvmField
        val DIGEST = "multipart/digest".toMediaType()
    
        /**
         * This type is syntactically identical to "multipart/mixed", but the semantics are different.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  5. 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)
  6. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

     *
     * This matches IPv6 addresses as a hex string containing at least one colon, and possibly
     * including dots after the first colon. It matches IPv4 addresses as strings containing only
     * decimal digits and dots. This pattern matches strings like "a:.23" and "54" that are neither IP
     * addresses nor hostnames; they will be verified as IP addresses (which is a more strict
     * verification).
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

       * address.
       */
      private fun routeMatchesAny(candidates: List<Route>): Boolean {
        return candidates.any {
          it.proxy.type() == Proxy.Type.DIRECT &&
            route.proxy.type() == Proxy.Type.DIRECT &&
            route.socketAddress == it.socketAddress
        }
      }
    
      private fun supportsUrl(url: HttpUrl): Boolean {
        lock.assertHeld()
    
        val routeUrl = route.address.url
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

            if (pos == limit) return false // Malformed.
            val c = string[pos++]
            val digit =
              when (c) {
                in 'a'..'z' -> c - 'a'
                in 'A'..'Z' -> c - 'A'
                in '0'..'9' -> c - '0' + 26
                else -> return false // Malformed.
              }
            val deltaI = digit * w
            if (i > Int.MAX_VALUE - deltaI) return false // Prevent overflow.
            i += deltaI
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_4x.md

     *  Fix: Don't crash with an `InaccessibleObjectException` when running on JDK17+ with strong
        encapsulation enabled.
     *  Fix: Strictly verify hostnames used with OkHttp's `HostnameVerifier`. Programs that make direct
        manual calls to `HostnameVerifier` could be defeated if the hostnames they pass in are not
        strictly ASCII. This issue is tracked as [CVE-2021-0341].
    
    
    ## Version 4.9.1
    
    _2021-01-30_
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val contentLength: Long = multipartBody.contentLength()
        multipartBody.writeTo(Buffer())
        val mixed: MediaType = MultipartBody.MIXED
        val alternative: MediaType = MultipartBody.ALTERNATIVE
        val digest: MediaType = MultipartBody.DIGEST
        val parallel: MediaType = MultipartBody.PARALLEL
        val form: MediaType = MultipartBody.FORM
      }
    
      @Test
      fun multipartBodyPart() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
Back to top