Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 508 for eval (0.08 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt

        val actual = component.encodedValue(url)
        if (actual != expected) {
          fail("Encoding $component $codePoint using $encoding: '$actual' != '$expected'")
        }
      }
    
      private fun testEncodeAndDecode(
        codePoint: Int,
        codePointString: String,
        component: Component,
      ) {
        val builder = "http://host/".toHttpUrl().newBuilder()
        component[builder] = codePointString
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

     */
    class DnsOverHttps internal constructor(
      @get:JvmName("client") val client: OkHttpClient,
      @get:JvmName("url") val url: HttpUrl,
      @get:JvmName("includeIPv6") val includeIPv6: Boolean,
      @get:JvmName("post") val post: Boolean,
      @get:JvmName("resolvePrivateAddresses") val resolvePrivateAddresses: Boolean,
      @get:JvmName("resolvePublicAddresses") val resolvePublicAddresses: Boolean,
    ) : Dns {
      @Throws(UnknownHostException::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/PlatformRegistry.kt

    actual object PlatformRegistry {
      private val isConscryptPreferred: Boolean
        get() {
          val preferredProvider = Security.getProviders()[0].name
          return "Conscrypt" == preferredProvider
        }
    
      private val isOpenJSSEPreferred: Boolean
        get() {
          val preferredProvider = Security.getProviders()[0].name
          return "OpenJSSE" == preferredProvider
        }
    
      private val isBouncyCastlePreferred: Boolean
        get() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 22 14:39:30 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt

    @Tag("Slowish")
    class DispatcherTest {
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
      private val executor = RecordingExecutor(this)
      val callback = RecordingCallback()
      val webSocketListener =
        object : WebSocketListener() {
        }
      val dispatcher = Dispatcher(executor)
      val listener = RecordingEventListener()
      var client =
        clientTestRule
          .newClientBuilder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt

      /** Returns the service that will be used to resolve IP addresses for hostnames. */
      @get:JvmName("dns") val dns: Dns,
      /** Returns the socket factory for new connections. */
      @get:JvmName("socketFactory") val socketFactory: SocketFactory,
      /** Returns the SSL socket factory, or null if this is not an HTTPS address. */
      @get:JvmName("sslSocketFactory") val sslSocketFactory: SSLSocketFactory?,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt

            .isEqualTo("PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA")
        }
      }
    
      @Test fun readPaddedDataFrame() {
        val dataLength = 1123
        val expectedData = ByteArray(dataLength)
        Arrays.fill(expectedData, 2.toByte())
        val paddingLength = 254
        val padding = ByteArray(paddingLength)
        Arrays.fill(padding, 0.toByte())
        writeMedium(frame, dataLength + paddingLength + 1)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

      override fun hashCode(): Int = mediaType.hashCode()
    
      companion object {
        private const val TOKEN = "([a-zA-Z0-9-!#$%&'*+.^_`{|}~]+)"
        private const val QUOTED = "\"([^\"]*)\""
        private val TYPE_SUBTYPE = Regex("$TOKEN/$TOKEN")
        private val PARAMETER = Regex(";\\s*(?:$TOKEN=(?:$TOKEN|$QUOTED))?")
    
        /**
         * Returns a media type for this string.
         *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:08 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionSpecTest.kt

      }
    
      @Test
      fun equalsAndHashCode() {
        val allCipherSuites =
          ConnectionSpec
            .Builder(ConnectionSpec.MODERN_TLS)
            .allEnabledCipherSuites()
            .build()
        val allTlsVersions =
          ConnectionSpec
            .Builder(ConnectionSpec.MODERN_TLS)
            .allEnabledTlsVersions()
            .build()
        val set: MutableSet<Any> = CopyOnWriteArraySet()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  9. samples/tlssurvey/src/main/kotlin/okhttp3/survey/types/Client.kt

     * limitations under the License.
     */
    package okhttp3.survey.types
    
    data class Client(
      val userAgent: String,
      val version: String,
      val platform: String? = null,
      val enabled: List<SuiteId> = listOf(),
      val supported: List<SuiteId> = listOf(),
    ) {
      val nameAndVersion: String
        get() = "$userAgent/$version"
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Apr 02 01:44:15 UTC 2024
    - 883 bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt

       */
      private fun promoteAndExecute(): Boolean {
        assertLockNotHeld()
    
        val executableCalls = mutableListOf<AsyncCall>()
        val isRunning: Boolean
        synchronized(this) {
          val i = readyAsyncCalls.iterator()
          while (i.hasNext()) {
            val asyncCall = i.next()
    
            if (runningAsyncCalls.size >= this.maxRequests) break // Max capacity.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top