Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for Barray (0.19 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        override fun getAcceptedIssuers(): Array<X509Certificate> = delegate.acceptedIssuers
    
        override fun checkClientTrusted(
          chain: Array<X509Certificate>,
          authType: String,
        ) {
          calls.add("checkClientTrusted " + certificatesToString(chain))
        }
    
        override fun checkServerTrusted(
          chain: Array<X509Certificate>,
          authType: String,
        ) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  2. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

          object : X509TrustManager {
            override fun checkClientTrusted(
              chain: Array<X509Certificate>,
              authType: String,
            ) {}
    
            override fun checkServerTrusted(
              chain: Array<X509Certificate>,
              authType: String,
            ) {}
    
            override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf()
          }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (1)
  3. okhttp/src/test/java/okhttp3/internal/http/ExternalHttp2Example.kt

     * limitations under the License.
     */
    package okhttp3.internal.http
    
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.Request
    
    object ExternalHttp2Example {
      @JvmStatic
      fun main(args: Array<String>) {
        val client =
          OkHttpClient.Builder()
            .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1))
            .build()
        val call =
          client.newCall(
            Request.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

          )
        }
      }
    
      companion object {
        /**
         * Reads all stories in the folders provided, asserts if no story found.
         */
        @JvmStatic
        protected fun createStories(interopTests: Array<String>): List<Any> {
          if (interopTests.isEmpty()) return listOf<Any>(Story.MISSING)
    
          val result = mutableListOf<Any>()
          for (interopTestName in interopTests) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. mockwebserver/README.md

    from your test's `tearDown()`.
    
    ### API
    
    #### MockResponse
    
    Mock responses default to an empty response body and a `200` status code.
    You can set a custom body with a string, input stream or byte array. Also
    add headers with a fluent builder API.
    
    ```java
    MockResponse response = new MockResponse()
        .addHeader("Content-Type", "application/json; charset=utf-8")
        .addHeader("Cache-Control", "no-cache")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Huffman.kt

        val start = (code shl shift) and 0xff
        val end = 1 shl shift
        node.children!!.fill(terminal, start, start + end)
      }
    
      private class Node {
        /** Null if terminal. */
        val children: Array<Node?>?
    
        /** Terminal nodes have a symbol. */
        val symbol: Int
    
        /** Number of bits represented in the terminal node. */
        val terminalBitCount: Int
    
        /** Construct an internal node. */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

          i++
        }
        val groupLength = i - groupOffset
        if (groupLength == 0 || groupLength > 4) return null // Group is the wrong size.
    
        // We've successfully read a group. Assign its value to our byte array.
        address[b++] = (value.ushr(8) and 0xff).toByte()
        address[b++] = (value and 0xff).toByte()
      }
    
      // All done. If compression happened, we need to move bytes to the right place in the
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java

        // an OkHttp request. In order to be selected a cipher suite must be included in both OkHttp's
        // connection spec and in the SSLSocket's enabled cipher suites array. Most applications should
        // not customize the cipher suites list.
        List<CipherSuite> customCipherSuites = asList(
            CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
            CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Mar 14 21:57:42 GMT 2019
    - 6.5K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

        delegate!!.removeValue(s)
      }
    
      override fun getValueNames(): Array<String> {
        return delegate!!.valueNames
      }
    
      @Throws(SSLPeerUnverifiedException::class)
      override fun getPeerCertificates(): Array<Certificate>? {
        return delegate!!.peerCertificates
      }
    
      override fun getLocalCertificates(): Array<Certificate>? {
        return delegate!!.localCertificates
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

      }
    
      override fun getSupportedCipherSuites(): Array<String> {
        return delegate!!.supportedCipherSuites
      }
    
      override fun getEnabledCipherSuites(): Array<String> {
        return delegate!!.enabledCipherSuites
      }
    
      override fun setEnabledCipherSuites(suites: Array<String>) {
        delegate!!.enabledCipherSuites = suites
      }
    
      override fun getSupportedProtocols(): Array<String> {
        return delegate!!.supportedProtocols
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.9K bytes
    - Viewed (0)
Back to top