Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

            try {
              ******@****.***(removeSnapshot.key())
            } catch (_: IOException) {
              // Nothing useful to do here. We failed to remove from the cache. Most likely that's
              // because we couldn't update the journal, but the cached entry will still be gone.
            } finally {
              this.removeSnapshot = null
            }
          }
        }
      }
    
      /** A snapshot of the values for an entry. */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt

    import okio.ByteString
    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import org.junit.jupiter.api.Test
    
    internal class MessageDeflaterInflaterTest {
      @Test fun `inflate golden value`() {
        val inflater = MessageInflater(false)
        val message = "f248cdc9c957c8cc4bcb492cc9cccf530400".decodeHex()
        assertThat(inflater.inflate(message)).isEqualTo("Hello inflation!".encodeUtf8())
      }
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

        assertThat(decoded).isEqualTo(date("1949-12-31T23:59:59.000+0000").time)
        assertThat(encoded).isEqualTo(generalizedTimeDer)
      }
    
      @Test
      fun `reencode golden EC certificate`() {
        val certificateByteString =
          (
            "MIIBkjCCATmgAwIBAgIBETAKBggqhkjOPQQDAjAwMRYwFAYDVQQLDA1HZW5lIFJ" +
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 43.9K bytes
    - Viewed (0)
  4. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  5. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  6. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  8. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  9. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  10. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top