Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for Cline (0.17 sec)

  1. okhttp/src/test/java/okhttp3/internal/http/ExternalHttp2Example.kt

              .build(),
          )
        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()
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

              source.readData(data)
            }
    
            in 5..7 -> {
              data.writeByte('\n'.code) // 'data' on a line of its own.
            }
    
            in 8..9 -> {
              id = source.readUtf8LineStrict().takeIf { it.isNotEmpty() }
            }
    
            in 10..12 -> {
              id = null // 'id' on a line of its own.
            }
    
            in 13..14 -> {
              type = source.readUtf8LineStrict().takeIf { it.isNotEmpty() }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

     * All comments are ignored.
     *
     * Regular lines contain fields separated by semicolons.
     *
     * The first element on each line is a single hex code point (like 0041) or a hex code point range
     * (like 0030..0039).
     *
     * The second element on each line is a mapping type, like `valid` or `mapped`.
     *
     * For lines that contain a mapping target, the next thing is a sequence of hex code points (like
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        // TODO make exception message escape non-printable characters
      }
    
      @Test
      fun parseDoesNotTrimOtherWhitespaceCharacters() {
        // Whitespace characters list from Google's Guava team: http://goo.gl/IcR9RD
        // line tabulation
        assertThat(parse("http://h/\u000b").encodedPath).isEqualTo("/%0B")
        // information separator 4
        assertThat(parse("http://h/\u001c").encodedPath).isEqualTo("/%1C")
        // information separator 3
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_4x.md

     *  Fix: Don't crash when the URL hostname contains an underscore on Android.
     *  Fix: Change HTTP/2 to use a daemon thread for its socket reader. If you've ever seen a command
        line application hang after all of the work is done, it may be due to a non-daemon thread like
        this one.
     *  New: Include suppressed exceptions when all routes to a target service fail.
    
    
    ## Version 4.4.1
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val call = proxyConfig.connect(server, client, url)
        assertContent("this response comes via a secure proxy", call.execute())
        val connect = server.takeRequest()
        assertThat(connect.requestLine, "Connect line failure on proxy")
          .isEqualTo("CONNECT android.com:443 HTTP/1.1")
        assertThat(connect.headers["Host"]).isEqualTo("android.com:443")
        val get = server.takeRequest()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

      private fun readJournalLine(line: String) {
        val firstSpace = line.indexOf(' ')
        if (firstSpace == -1) throw IOException("unexpected journal line: $line")
    
        val keyBegin = firstSpace + 1
        val secondSpace = line.indexOf(' ', keyBegin)
        val key: String
        if (secondSpace == -1) {
          key = line.substring(keyBegin)
          if (firstSpace == REMOVE.length && line.startsWith(REMOVE)) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt

    import assertk.assertions.isEqualTo
    import kotlin.test.Test
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    
    /** Runs the web platform ToAscii tests. */
    class WebPlatformToAsciiTest {
      @Suppress("ktlint:standard:max-line-length")
      val knownFailures =
        setOf(
          // OkHttp rejects empty labels.
          "x..xn--zca",
          "x..ß",
          // OkHttp rejects labels longer than 63 code points, the web platform tests don't.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  9. android-test/README.md

    $ echo "no" | avdmanager --verbose create avd --force --name "pixel5" --device "pixel" --package "system-images;android-29;google_apis;x86" --tag "google_apis" --abi "x86"
    ```
    
    2. Run an Emulator using Android Studio or from command line.
    
    ```
    $ emulator -no-window -no-snapshot-load @pixel5
    ```
    
    2. Turn on logs with logcat
    
    ```
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            }
        }
    
        return result
      }
    
      @Throws(IOException::class)
      private fun readEmptyLine(source: BufferedSource) {
        val line = source.readUtf8LineStrict()
        check(line.isEmpty()) { "Expected empty but was: $line" }
      }
    
      override fun toString(): String = "MockWebServer[$portField]"
    
      @Throws(IOException::class)
      override fun close() = shutdown()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
Back to top