Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for ello (0.01 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

            .trailers(headersOf("t1", "v2"))
            .body(protocol, "Hello")
            .build(),
        )
    
        val call = client.newCall(Request(server.url("/")))
        call.execute().use { response ->
          val source = response.body.source()
          assertThat(response.header("h1")).isEqualTo("v1")
          assertThat(source.readUtf8()).isEqualTo("Hello")
          assertThat(response.trailers()).isEqualTo(headersOf("t1", "v2"))
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 08 21:45:04 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

            .build(),
        )
        val webSocket: WebSocket = newWebSocket()
        clientListener.assertOpen()
        val server = serverListener.assertOpen()
        webSocket.send("Hello, WebSockets!")
        serverListener.assertTextMessage("Hello, WebSockets!")
        closeWebSockets(webSocket, server)
      }
    
      @Test
      fun binaryMessage() {
        webServer.enqueue(
          MockResponse
            .Builder()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CallTagsTest.kt

            .Builder()
            .url("https://square.com/".toHttpUrl())
            .tag(Integer::class, 5 as Integer)
            .tag(String::class, "hello")
            .build()
        val call = client.newCall(request)
    
        // Check the Kotlin-focused APIs.
        assertThat(call.tag(String::class)).isEqualTo("hello")
        assertThat(call.tag(Integer::class)).isEqualTo(5)
        assertThat(call.tag(Boolean::class)).isNull()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Oct 26 14:54:46 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt

        serverReaderWithCompression.processNextFrame()
        callback.assertTextMessage("Hello")
      }
    
      @Test fun serverWithCompressionSimpleCompressedHello() {
        data.write("c18760b420bb92fced72a9b320".decodeHex()) // Hello
        serverReaderWithCompression.processNextFrame()
        callback.assertTextMessage("Hello")
      }
    
      @Test fun clientFramePayloadShort() {
        data.write("817E000548656c6c6f".decodeHex()) // Hello
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 16:11:23 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt

        serverIpv4.enqueue(
          MockResponse(body = "unexpected call to IPv4"),
        )
        serverIpv6.enqueue(
          MockResponse(body = "hello from IPv6"),
        )
    
        val call = client.newCall(Request(url))
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("hello from IPv6")
    
        // In the process we made one successful connection attempt.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/RequestBodyTest.kt

      }
    
      @Test
      fun testPathRead() {
        assertOnPath(content = "Hello") { path ->
          val requestBody = path.asRequestBody(FileSystem.SYSTEM)
    
          val buffer = Buffer()
          requestBody.writeTo(buffer)
          assertThat(buffer.readUtf8()).isEqualTo("Hello")
        }
      }
    
      @Test
      fun testSha256() {
        val hash = "Hello".toRequestBody().sha256().hex()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 14:16:29 UTC 2025
    - 3.8K bytes
    - Viewed (1)
  7. android/guava-tests/test/com/google/common/io/FilesTest.java

        PrintWriter w = new PrintWriter(Files.newWriter(temp, UTF_8));
        w.println("hello");
        w.println("");
        w.println(" world  ");
        w.println("");
        w.close();
    
        assertEquals("hello", Files.readFirstLine(temp, UTF_8));
        assertEquals(ImmutableList.of("hello", "", " world  ", ""), Files.readLines(temp, UTF_8));
    
        assertTrue(temp.delete());
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

          .build()
    
      fun executeAndCheckUpgrade(request: Request) {
        val socketHandler =
          MockSocketHandler()
            .apply {
              receiveRequest("client says hello\n")
              sendResponse("server says hello\n")
              receiveRequest("client says goodbye\n")
              sendResponse("server says goodbye\n")
              exhaustResponse()
              exhaustRequest()
            }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/curl/CurlResponseTest.java

        }
    
        @Test
        public void testGetContentAsStringWithCache() throws IOException {
            CurlResponse response = new CurlResponse();
            response.setEncoding("UTF-8");
            String testContent = "Hello, World!";
            byte[] data = testContent.getBytes("UTF-8");
            ContentCache cache = new ContentCache(data);
            response.setContentCache(cache);
    
            String content = response.getContentAsString();
    
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/crypto/CachedCipherTest.java

    public class CachedCipherTest {
    
        @Test
        public void testEncryptDecryptBytes() {
            final CachedCipher cipher = new CachedCipher();
            cipher.setKey("mySecretKey");
    
            final byte[] original = "Hello World".getBytes();
            final byte[] encrypted = cipher.encrypt(original);
            final byte[] decrypted = cipher.decrypt(encrypted);
    
            assertThat(encrypted, is(not(original)));
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top