Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Goulden (0.24 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

        val result = Buffer()
    
        while (pos < limit) {
          var dot = string.indexOf('.', startIndex = pos)
          if (dot == -1) dot = limit
    
          if (!encodeLabel(string, pos, dot, result)) {
            // If we couldn't encode the label, give up.
            return null
          }
    
          if (dot < limit) {
            result.writeByte('.'.code)
            pos = dot + 1
          } else {
            break
          }
        }
    
    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)
  2. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

            .build()
        val certificate = heldCertificate.certificate
        assertThat(certificate.getSubjectX500Principal().name).isEqualTo(
          "CN=cash.app,OU=cash",
        )
      }
    
      /** Confirm golden values of encoded PEMs.  */
      @Test
      fun pems() {
        val keyFactory = KeyFactory.getInstance("RSA")
        val publicKeyBytes =
          (
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  3. docs/features/calls.md

    ## Retrying Requests
    
    Sometimes connections fail: either a pooled connection was stale and disconnected, or the webserver itself couldn’t be reached. OkHttp will retry the request with a different route if one is available.
    
    ## [Calls](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-call/)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

          !source.exhausted()
        } finally {
          soTimeout = readTimeout
        }
      } catch (_: SocketTimeoutException) {
        true // Read timed out; socket is good.
      } catch (_: IOException) {
        false // Couldn't read; socket is closed.
      }
    }
    
    internal inline fun threadName(
      name: String,
      block: () -> Unit,
    ) {
      val currentThread = Thread.currentThread()
      val oldName = currentThread.name
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt

        "EEE MMM d yyyy HH:mm:ss z",
      )
    
    private val BROWSER_COMPATIBLE_DATE_FORMATS =
      arrayOfNulls<DateFormat>(BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS.size)
    
    /** Returns the date for this string, or null if the value couldn't be parsed. */
    fun String.toHttpDateOrNull(): Date? {
      if (isEmpty()) return null
    
      val position = ParsePosition(0)
      var result = STANDARD_DATE_FORMAT.get().parse(this, position)
      if (position.index == length) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

            """.trimIndent(),
          )
        assertThat(verifier.verify("127.0.0.1", session)).isFalse()
      }
    
      /**
       * Earlier implementations of Android's hostname verifier required that wildcard names wouldn't
       * match "*.com" or similar. This was a nonstandard check that we've since dropped. It is the CA's
       * responsibility to not hand out certificates that match so broadly.
       */
      @Test fun wildcardsDoesNotNeedTwoDots() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 40.3K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_3x.md

     *  Fix: Fail fast if network interceptors transform the response body such that
        closing it doesn't also close the underlying stream. We had a bug where
        OkHttp would attempt to reuse a connection but couldn't because it was still
        held by a prior request.
     *  Fix: Ensure network interceptors always have access to the underlying
        connection.
     *  Fix: Use `X509TrustManagerExtensions` on Android 17+.
    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. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

                if (pin.hash == sha1) return // Success!
              }
              else -> throw AssertionError("unsupported hashAlgorithm: ${pin.hashAlgorithm}")
            }
          }
        }
    
        // If we couldn't find a matching pin, format a nice exception.
        val message =
          buildString {
            append("Certificate pinning failure!")
            append("\n  Peer certificate chain:")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  9. okhttp/src/main/kotlin/okhttp3/Cache.kt

                  val metadata = snapshot.getSource(ENTRY_METADATA).buffer()
                  nextUrl = metadata.readUtf8LineStrict()
                  return true
                }
              } catch (_: IOException) {
                // We couldn't read the metadata for this snapshot; possibly because the host filesystem
                // has disappeared! Skip it.
              }
            }
    
            return false
          }
    
          override fun next(): String {
    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. docs/changelogs/changelog_2x.md

        corrupted journal. We've added APIs to configure a request's `Cache-Control`
        headers, and to manually clear the cache.
    
     *  **Request cancellation fixes.** This update fixes a bug where synchronous
        requests couldn't be canceled by tag. This update avoids crashing when
        `onResponse()` throws an `IOException`. That failure will now be logged
        instead of notifying the thread's uncaught exception handler. We've added a
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
Back to top