Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 159 for tree (0.16 sec)

  1. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt

        fun server(name: String): MockWebServer {
          return servers.getOrPut(name) {
            MockWebServer().also {
              if (started) it.start()
            }
          }
        }
    
        fun startAll() {
          started = true
          for (server in servers.values) {
            server.start()
          }
        }
    
        fun shutdownAll() {
          try {
            val toClear = servers.values.toList()
            servers.clear()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 11 12:12:36 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/TestTls13Request.kt

     * as part of MODERN_TLS or folded into the default OkHttp client once published and
     * available in JDK11 or Conscrypt.
     */
    private val TLS_13 =
      ConnectionSpec.Builder(true)
        .cipherSuites(*TLS13_CIPHER_SUITES.toTypedArray())
        .tlsVersions(TlsVersion.TLS_1_3)
        .build()
    
    private val TLS_12 =
      ConnectionSpec.Builder(ConnectionSpec.RESTRICTED_TLS)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/SocketPolicy.kt

     *
     * Be careful when using values like [DisconnectAtEnd], [ShutdownInputAtEnd]
     * and [ShutdownOutputAtEnd] that close a socket after a response, and where there are
     * follow-up requests. The client is unblocked and free to continue as soon as it has received the
     * entire response body. If and when the client makes a subsequent request using a pooled socket the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt

        if (id < 0 || id >= values.size) {
          return this // Discard unknown settings.
        }
    
        val bit = 1 shl id
        set = set or bit
        values[id] = value
        return this
      }
    
      /** Returns true if a value has been assigned for the setting `id`. */
      fun isSet(id: Int): Boolean {
        val bit = 1 shl id
        return set and bit != 0
      }
    
      /** Returns the value for the setting `id`, or 0 if unset. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

                socketConnectTimeoutMillis = 10_000,
                socketReadTimeoutMillis = 10_000,
                pingIntervalMillis = 10_000,
                retryOnConnectionFailure = false,
                fastFallback = true,
                address = address,
                routeDatabase = RouteDatabase(),
                connectionUser = user,
              ),
              taskRunner,
            )
          },
        )
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  6. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

            client = bootstrapClient,
            http2Only = true,
            workingOnly = true,
            getOnly = true,
          )
        runBatch(dnsProviders, names)
        println("cached second run\n*****************\n")
        dnsProviders =
          providers(
            client = bootstrapClient,
            http2Only = true,
            workingOnly = true,
            getOnly = true,
          )
        runBatch(dnsProviders, names)
      } finally {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

            // what we did get (such as a 4xx response) without ever transmitting the request body.
            if ("100-continue".equals(request.header("Expect"), ignoreCase = true)) {
              exchange.flushRequest()
              responseBuilder = exchange.readResponseHeaders(expectContinue = true)
              exchange.responseHeadersStart()
              invokeStartEvent = false
            }
            if (responseBuilder == null) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.3K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

            val alpnClass = Class.forName(alpnClassName, true, null)
            val providerClass = Class.forName("$alpnClassName\$Provider", true, null)
            val clientProviderClass = Class.forName("$alpnClassName\$ClientProvider", true, null)
            val serverProviderClass = Class.forName("$alpnClassName\$ServerProvider", true, null)
            val putMethod = alpnClass.getMethod("put", SSLSocket::class.java, providerClass)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

        socket.enabledCipherSuites = arrayOf("SSL_A")
        val connectionSpec =
          ConnectionSpec.Builder(true)
            .tlsVersions(TlsVersion.TLS_1_0)
            .cipherSuites("SSL_A")
            .build()
        applyConnectionSpec(connectionSpec, socket, true)
        assertArrayEquals(
          arrayOf("SSL_A", "SSL_FALLBACK_SCSV"),
          socket.enabledCipherSuites,
        )
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

                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
                continue@afterBoundaryLoop
              }
    
              -1 -> throw ProtocolException("unexpected characters after boundary")
    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)
Back to top