Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for array (0.17 sec)

  1. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

        assertThat(recordedRequest.path)
          .isEqualTo("/lookup?ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ")
      }
    
      @Test
      fun failOnExcessiveResponse() {
        val array = CharArray(128 * 1024 + 2) { '0' }
        server.enqueue(dnsResponse(String(array)))
        try {
          dns.lookup("google.com")
          fail<Any>()
        } catch (ioe: IOException) {
          assertThat(ioe.message).isEqualTo("google.com")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 11K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

      }
    
      @JvmStatic
      fun repeat(
        c: Char,
        count: Int,
      ): String {
        val array = CharArray(count)
        Arrays.fill(array, c)
        return String(array)
      }
    
      /**
       * Okio buffers are internally implemented as a linked list of arrays. Usually this implementation
       * detail is invisible to the caller, but subtle use of certain APIs may depend on these internal
       * structures.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

    import java.io.InterruptedIOException
    import java.net.Socket
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.locks.Condition
    import java.util.concurrent.locks.ReentrantLock
    import okhttp3.internal.EMPTY_BYTE_ARRAY
    import okhttp3.internal.EMPTY_HEADERS
    import okhttp3.internal.assertThreadDoesntHoldLock
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.connection.Locks.withLock
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Cache.kt

         * length of the local certificate chain. These certificates are also base64-encoded and appear
         * each on their own line. A length of -1 is used to encode a null array. The last line is
         * optional. If present, it contains the TLS version.
         */
        @Throws(IOException::class)
        constructor(rawSource: Source) {
          rawSource.use {
            val source = rawSource.buffer()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            override fun checkClientTrusted(
              chain: Array<X509Certificate>,
              authType: String,
            ) = throw CertificateException()
    
            override fun checkServerTrusted(
              chain: Array<X509Certificate>,
              authType: String,
            ) = throw AssertionError()
    
            override fun getAcceptedIssuers(): Array<X509Certificate> = throw AssertionError()
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CallTest.kt

    import java.net.ProtocolException
    import java.net.Proxy
    import java.net.SocketTimeoutException
    import java.net.UnknownHostException
    import java.net.UnknownServiceException
    import java.time.Duration
    import java.util.Arrays
    import java.util.concurrent.BlockingQueue
    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.Executors
    import java.util.concurrent.SynchronousQueue
    import java.util.concurrent.TimeUnit
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

    import java.io.IOException
    import java.io.InterruptedIOException
    import java.net.HttpURLConnection
    import java.net.ProtocolException
    import java.net.SocketTimeoutException
    import java.time.Duration
    import java.util.Arrays
    import java.util.Collections
    import java.util.Random
    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicInteger
    import kotlin.test.assertFailsWith
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  8. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

      ) {
        setUp(protocol, mockWebServer)
        val responseDequeuedLatches =
          Arrays.asList(
            CountDownLatch(1),
            // No synchronization for the last request, which is not canceled:
            CountDownLatch(1),
            CountDownLatch(0),
          )
        val requestCanceledLatches =
          Arrays.asList(
            CountDownLatch(1),
            CountDownLatch(1),
            CountDownLatch(0),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * if (trustManagers.length != 1 || !(trustManagers[0] instanceof X509TrustManager)) {
         *     throw new IllegalStateException("Unexpected default trust managers:"
         *         + Arrays.toString(trustManagers));
         * }
         * X509TrustManager trustManager = (X509TrustManager) trustManagers[0];
         *
         * SSLContext sslContext = SSLContext.getInstance("TLS");
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  10. okcurl/src/main/kotlin/okhttp3/curl/MainCommandLine.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.curl
    
    import kotlin.system.exitProcess
    
    fun main(args: Array<String>) {
      Main().main(args)
      exitProcess(0)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 728 bytes
    - Viewed (0)
Back to top