Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for readUtf8Line (0.75 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

                sink.writeUtf8("client says hello\n")
                sink.flush()
    
                assertThat(source.readUtf8Line()).isEqualTo("server says hello")
    
                sink.writeUtf8("client says goodbye\n")
                sink.flush()
    
                assertThat(source.readUtf8Line()).isEqualTo("server says goodbye")
    
                assertThat(source.exhausted()).isTrue()
              }
            }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ExternalHttp2Example.kt

          )
        val response = call.execute()
        try {
          println(response.code)
          println("PROTOCOL ${response.protocol}")
          var line: String?
          while (response.body
              .source()
              .readUtf8Line()
              .also { line = it } != null
          ) {
            println(line)
          }
        } finally {
          response.body.close()
        }
        client.connectionPool.evictAll()
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTestData.kt

      companion object {
        fun load(source: BufferedSource): List<WebPlatformUrlTestData> {
          val list = mutableListOf<WebPlatformUrlTestData>()
          while (true) {
            val line = source.readUtf8Line() ?: break
            if (line.isEmpty() || line.startsWith("#")) continue
    
            var i = 0
            val parts = line.split(Regex(" ")).toTypedArray()
    
            val element = WebPlatformUrlTestData()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.7K bytes
    - Viewed (0)
Back to top