Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 125 for Kata (0.14 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

            .setHeader("Content-Type", "text/event-stream")
            .chunkedBody(
              """
              |event: add
              |data: 73857293
              |
              |event: remove
              |data: 2153
              |
              |event: add
              |data: 113411
              |
              |
              """.trimMargin(),
              8,
            )
            .build(),
        )
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            // This check is imperfect: it doesn't tell us whether a handshake will succeed, just
            // that it will almost certainly fail because the proxy has sent unexpected data.
            if (source?.buffer?.exhausted() == false || sink?.buffer?.exhausted() == false) {
              throw IOException("TLS tunnel buffered too many bytes!")
            }
    
            user.secureConnectStart()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        try {
          client.newCall(request).execute()
          fail<Any>("expected cleartext blocking")
        } catch (_: java.net.UnknownServiceException) {
        }
      }
    
      data class HowsMySslResults(
        val unknown_cipher_suite_supported: Boolean,
        val beast_vuln: Boolean,
        val session_ticket_supported: Boolean,
        val tls_compression_supported: Boolean,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  4. okhttp/src/test/java/okhttp3/CallTest.kt

            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      private fun gzip(data: String): Buffer {
        val result = Buffer()
        val sink = GzipSink(result).buffer()
        sink.writeUtf8(data)
        sink.close()
        return result
      }
    
      private fun cancelLater(
        call: Call,
        delay: Long,
      ): Thread {
    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)
  5. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

        callback.assertTextMessage("Hello")
      }
    
      @Test fun clientTwoFrameHelloWithPongs() {
        data.write("010348656c".decodeHex()) // Hel
        data.write("8a00".decodeHex()) // Pong
        data.write("8a00".decodeHex()) // Pong
        data.write("8a00".decodeHex()) // Pong
        data.write("8a00".decodeHex()) // Pong
        data.write("80026c6f".decodeHex()) // lo
        clientReader.processNextFrame()
        callback.assertPong(EMPTY)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt

      @Test
      fun largeRead() {
        val data = randomByteString(1000000)
        write(data)
        val operator =
          FileOperator(
            randomAccessFile!!.getChannel(),
          )
        val buffer = Buffer()
        operator.read(0, buffer, data.size.toLong())
        assertThat(buffer.readByteString()).isEqualTo(data)
      }
    
      @Test
      fun largeWrite() {
        val data = randomByteString(1000000)
        val operator =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

        drainCancelQueue(eventSource)
      }
    
      override fun onEvent(
        eventSource: EventSource,
        id: String?,
        type: String?,
        data: String,
      ) {
        get().log("[ES] onEvent", Platform.INFO, null)
        events.add(Event(id, type, data))
        drainCancelQueue(eventSource)
      }
    
      override fun onClosed(eventSource: EventSource) {
        get().log("[ES] onClosed", Platform.INFO, null)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

          """
          |--AaB03x
          |Content-Disposition: form-data; name="field with spaces"; filename="filename with spaces.txt"
          |Content-Type: text/plain; charset=utf-8
          |
          |okay
          |--AaB03x
          |Content-Disposition: form-data; name="field with %22"
          |
          |"
          |--AaB03x
          |Content-Disposition: form-data; name="field with %22"
          |
          |%22
          |--AaB03x
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          sink.writeInt(errorCode.httpCode)
          sink.flush()
        }
      }
    
      /** The maximum size of bytes that may be sent in a single call to [data]. */
      fun maxDataLength(): Int = maxFrameSize
    
      /**
       * `source.length` may be longer than the max length of the variant's data frame. Implementations
       * must send multiple frames as necessary.
       *
       * @param source the buffer to draw bytes from. May be null if byteCount is 0.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

      ) {
        if (streamId == 0) throw IOException("PROTOCOL_ERROR: TYPE_DATA streamId == 0")
    
        // TODO: checkState open or half-closed (local) or raise STREAM_CLOSED
        val inFinished = flags and FLAG_END_STREAM != 0
        val gzipped = flags and FLAG_COMPRESSED != 0
        if (gzipped) {
          throw IOException("PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA")
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
Back to top