Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 252 for tree (0.14 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. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

        override fun equals(other: Any?): Boolean {
          if (this === other) return true
          if (other !is Pin) return false
    
          if (pattern != other.pattern) return false
          if (hashAlgorithm != other.hashAlgorithm) return false
          if (hash != other.hash) return false
    
          return true
        }
    
        override fun hashCode(): Int {
          var result = pattern.hashCode()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  4. 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)
  5. 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)
  6. okhttp/src/main/kotlin/okhttp3/Response.kt

      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "code"),
        level = DeprecationLevel.ERROR,
      )
      fun code(): Int = code
    
      /**
       * Returns true if the code is in [200..300), which means the request was successfully received,
       * understood, and accepted.
       */
      val isSuccessful: Boolean = commonIsSuccessful
    
      @JvmName("-deprecated_message")
      @Deprecated(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  7. 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)
  8. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

         * upgraded to HTTPS or HTTP/2.
         */
        fun inTunnel() =
          apply {
            removeHeader("Content-Length")
            inTunnel = true
          }
    
        /**
         * Adds an HTTP 1xx response to precede this response. Note that this response's
         * [headers delay][headersDelay] applies after this response is transmitted. Set a
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  9. okhttp/src/main/kotlin/okhttp3/Headers.kt

        }
    
        return result
      }
    
      override operator fun iterator(): Iterator<Pair<String, String>> = commonIterator()
    
      fun newBuilder(): Builder = commonNewBuilder()
    
      /**
       * Returns true if `other` is a `Headers` object with the same headers, with the same casing, in
       * the same order. Note that two headers instances may be *semantically* equal but not equal
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  10. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

            }
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("Hello request!")
              sink.close()
            }
    
            override fun isDuplex(): Boolean {
              return true
            }
          }
        val request =
          request()
            .post(asyncRequestBody)
            .build()
        val response = client.newCall(request).execute()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
Back to top