Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Trello (0.14 sec)

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

        assertThat(body.string()).isEqualTo("hello")
      }
    
      @Test
      fun stringBomUtf8() {
        val body = body("efbbbf68656c6c6f")
        assertThat(body.string()).isEqualTo("hello")
      }
    
      @Test
      fun stringBomUtf16Be() {
        val body = body("feff00680065006c006c006f")
        assertThat(body.string()).isEqualTo("hello")
      }
    
      @Test
      fun stringBomUtf16Le() {
        val body = body("fffe680065006c006c006f00")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

           * Content-Length: 3
           *
           * Hi?
           * --> END POST
           *
           * <-- 200 OK (22ms)
           * Content-Type: plain/text
           * Content-Length: 6
           *
           * Hello!
           * <-- END HTTP
           * ```
           */
          BODY,
        }
    
        fun interface Logger {
          fun log(message: String)
    
          companion object {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        )
        val response = client.newCall(request().build()).execute()
        val responseBody = response.body
        assertThat(responseBody.string(), "Expected response body to be valid")
          .isEqualTo("Hello, Hello, Hello")
        responseBody.close()
        networkLogs
          .assertLogEqual("--> GET $url http/1.1")
          .assertLogEqual("Host: $host")
          .assertLogEqual("Connection: Keep-Alive")
    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)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(headersToList(response)).containsExactly("Cookie: a=android")
      }
    
      @Test
      fun regularResponse() {
        server.enqueue(MockResponse().setBody("hello world"))
        val url = server.url("/").toUrl()
        val connection = url.openConnection() as HttpURLConnection
        connection.setRequestProperty("Accept-Language", "en-US")
        val inputStream = connection.inputStream
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/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
    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/ws/RealWebSocketTest.kt

        client.webSocket!!.finishReader()
        server.listener.assertClosed(1000, "Hello!")
        client.listener.assertClosed(1000, "Goodbye!")
      }
    
      @Test
      fun clientCloseThenMethodsReturnFalse() {
        client.webSocket!!.close(1000, "Hello!")
        assertThat(client.webSocket!!.close(1000, "Hello!")).isFalse()
        assertThat(client.webSocket!!.send("Hello!")).isFalse()
      }
    
      @Test
      fun clientCloseWith0Fails() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/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.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

        }
      }
    
      @Test
      fun singlePart() {
        val expected =
          """
          |--123
          |
          |Hello, World!
          |--123--
          |
          """.trimMargin().replace("\n", "\r\n")
        val body =
          MultipartBody.Builder("123")
            .addPart("Hello, World!".toRequestBody(null))
            .build()
        assertThat(body.boundary).isEqualTo("123")
    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/test/java/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()
    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)
  10. okhttp/src/test/java/okhttp3/RequestTest.kt

    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    import org.junit.jupiter.api.Test
    
    class RequestTest {
      @Test
      fun constructor() {
        val url = "https://example.com/".toHttpUrl()
        val body = "hello".toRequestBody()
        val headers = headersOf("User-Agent", "RequestTest")
        val method = "PUT"
        val request =
          Request(
            url = url,
            headers = headers,
            method = method,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
Back to top