Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 542 for vary (0.02 sec)

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

    class DuplexTest {
      @RegisterExtension
      val platform = PlatformRule()
    
      @RegisterExtension
      var clientTestRule = OkHttpClientTestRule()
    
      @StartStop
      private val server = MockWebServer()
    
      private var eventRecorder = EventRecorder()
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private var client =
        clientTestRule
          .newClientBuilder()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

    internal inline fun ignoreIoExceptions(block: () -> Unit) {
      try {
        block()
      } catch (_: IOException) {
      }
    }
    
    internal fun Buffer.skipAll(b: Byte): Int {
      var count = 0
      while (!exhausted() && this[0] == b) {
        count++
        readByte()
      }
      return count
    }
    
    /**
     * Returns the index of the next non-whitespace character in this. Result is undefined if input
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpDateTest.kt

    import java.util.Date
    import java.util.TimeZone
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    
    class HttpDateTest {
      private lateinit var originalDefault: TimeZone
    
      @BeforeEach
      fun setUp() {
        originalDefault = TimeZone.getDefault()
        // The default timezone should affect none of these tests: HTTP specified GMT, so we set it to
        // something else.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        platform.localhostHandshakeCertificates()
    
      @StartStop
      private val server = MockWebServer()
    
      private lateinit var client: OkHttpClient
      private val fileSystem: FakeFileSystem = FakeFileSystem()
      private val cache: Cache = Cache(fileSystem, "/tmp/cache".toPath(), Long.MAX_VALUE)
      private lateinit var scheme: String
    
      private fun configureClientTestRule(): OkHttpClientTestRule {
        val clientTestRule = OkHttpClientTestRule()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 67.4K bytes
    - Viewed (0)
  5. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt

    import okhttp3.internal.tls.TrustRootIndex
    
    /** Android 10+ (API 29+). */
    @SuppressSignatureCheck
    class Android10Platform :
      Platform(),
      ContextAwarePlatform {
      override var applicationContext: Context? = null
    
      private val socketAdapters =
        listOfNotNull(
          Android10SocketAdapter.buildIfSupported(),
          DeferredSocketAdapter(AndroidSocketAdapter.playProviderFactory),
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Jul 20 11:25:50 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt

        return RecordedResponse(cacheResponse.request, cacheResponse, null, null, null)
      }
    
      fun assertFailure(vararg allowedExceptionTypes: Class<*>) =
        apply {
          var found = false
          for (expectedClass in allowedExceptionTypes) {
            if (expectedClass.isInstance(failure)) {
              found = true
              break
            }
          }
          assertThat(
            found,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

      - type: markdown
        attributes:
          value: >
            Comparing two approaches to a use case side by side can make it easier to examine the
            differences between them.
    
    
            Additionally, it's very useful to us if you can provide a "straw API" &mdash; what the
            method signatures would look like, for example, even if the method and class names are still
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Nov 17 18:47:47 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Route.kt

      override fun equals(other: Any?): Boolean =
        other is Route &&
          other.address == address &&
          other.proxy == proxy &&
          other.socketAddress == socketAddress
    
      override fun hashCode(): Int {
        var result = 17
        result = 31 * result + address.hashCode()
        result = 31 * result + proxy.hashCode()
        result = 31 * result + socketAddress.hashCode()
        return result
      }
    
      /**
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

      internal val exchange: Exchange?,
      internal val request: Request,
      internal val connectTimeoutMillis: Int,
      internal val readTimeoutMillis: Int,
      internal val writeTimeoutMillis: Int,
    ) : Interceptor.Chain {
      private var calls: Int = 0
    
      internal fun copy(
        index: Int = this.index,
        exchange: Exchange? = this.exchange,
        request: Request = this.request,
        connectTimeoutMillis: Int = this.connectTimeoutMillis,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt

         *
         * @param actualSSLSocketClass the runtime class of Conscrypt class socket.
         */
        private fun build(actualSSLSocketClass: Class<in SSLSocket>): AndroidSocketAdapter {
          var possibleClass: Class<in SSLSocket>? = actualSSLSocketClass
          while (possibleClass != null && possibleClass.simpleName != "OpenSSLSocketImpl") {
            possibleClass = possibleClass.superclass
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top