Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for leash (0.39 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

    /**
     * Quick and dirty pattern to differentiate IP addresses from hostnames. This is an approximation
     * of Android's private InetAddress#isNumeric API.
     *
     * 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
    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)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        // Connection is pooled!
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
      }
    
      @Test
      fun streamDiscardingIsTimely() {
        // This response takes at least a full second to serve: 10,000 bytes served 100 bytes at a time.
        server.enqueue(
          MockResponse.Builder()
            .body(Buffer().write(ByteArray(10000)))
            .throttleBody(100, 10, TimeUnit.MILLISECONDS)
    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/main/kotlin/okhttp3/MultipartReader.kt

              1 -> {
                // "--": No more parts.
                if (whitespace) throw ProtocolException("unexpected characters after boundary")
                if (partCount == 0) throw ProtocolException("expected at least 1 part")
                noMoreParts = true
                return null
              }
    
              2, 3 -> {
                // " " or "\t" Ignore whitespace and keep looking.
                whitespace = true
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

            .isEqualTo("At least one TLS version is required")
        }
      }
    
      @Test
      fun noCipherSuites() {
        assertFailsWith<IllegalArgumentException> {
          ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
            .cipherSuites(*arrayOf<CipherSuite>())
            .build()
        }.also { expected ->
          assertThat(expected.message)
            .isEqualTo("At least one cipher suite is required")
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

      private val postponedRoutes = mutableListOf<Route>()
    
      init {
        resetNextProxy(address.url, address.proxy)
      }
    
      /**
       * Returns true if there's another set of routes to attempt. Every address has at least one route.
       */
      operator fun hasNext(): Boolean = hasNextProxy() || postponedRoutes.isNotEmpty()
    
      @Throws(IOException::class)
      operator fun next(): Selection {
        if (!hasNext()) throw NoSuchElementException()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

      fun onePartRequired() {
        assertFailsWith<IllegalStateException> {
          MultipartBody.Builder().build()
        }.also { expected ->
          assertThat(expected.message)
            .isEqualTo("Multipart body must have at least one part.")
        }
      }
    
      @Test
      fun singlePart() {
        val expected =
          """
          |--123
          |
          |Hello, World!
          |--123--
          |
          """.trimMargin().replace("\n", "\r\n")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/platform/android/DeferredSocketAdapter.kt

     *
     * We use this because eager classpath checks cause confusion and excessive logging in Android,
     * and we can't rely on classnames after proguard, so are probably best served by falling through
     * to a situation of trying our least likely noisiest options.
     */
    class DeferredSocketAdapter(private val socketAdapterFactory: Factory) : SocketAdapter {
      private var delegate: SocketAdapter? = null
    
      override fun isSupported(): Boolean {
        return true
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

        }
    
      /**
       * The number of segments in this URL's path. This is also the number of slashes in this URL's
       * path, like 3 in `http://host/a/b/c`. This is always at least 1.
       *
       * | URL                  | `pathSize()` |
       * | :------------------- | :----------- |
       * | `http://host/`       | `1`          |
       * | `http://host/a/b/c`  | `3`          |
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  9. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

            .signedBy(intermediate)
            .build()
        val handshakeCertificates =
          HandshakeCertificates.Builder()
            .addTrustedCertificate(root.certificate) // BouncyCastle requires at least one
            .heldCertificate(certificate, intermediate.certificate)
            .build()
        assertPrivateKeysEquals(
          certificate.keyPair.private,
          handshakeCertificates.keyManager.getPrivateKey("private"),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

          // character in that label
          return false
        }
    
        // Optimization: check whether hostname is too short to match the pattern. hostName must be at
        // least as long as the pattern because asterisk must match the whole left-most label and
        // hostname starts with a non-empty label. Thus, asterisk has to match one or more characters.
        if (hostname.length < pattern.length) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top