Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for readUtf8LineStrict (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/Cache.kt

            val urlLine = source.readUtf8LineStrict()
            // Choice here is between failing with a correct RuntimeException
            // or mostly silently with an IOException
            url = urlLine.toHttpUrlOrNull() ?: throw IOException("Cache corruption for $urlLine").also {
              Platform.get().log("cache corruption", WARN, it)
            }
            requestMethod = source.readUtf8LineStrict()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

      @Throws(IOException::class)
      private fun readJournal() {
        fileSystem.read(journalFile) {
          val magic = readUtf8LineStrict()
          val version = readUtf8LineStrict()
          val appVersionString = readUtf8LineStrict()
          val valueCountString = readUtf8LineStrict()
          val blank = readUtf8LineStrict()
    
          if (MAGIC != magic ||
            VERSION_1 != version ||
            appVersion.toString() != appVersionString ||
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

            val length = source.readInt()
            buffer.write(source, length.toLong())
          }
        }
        while (!buffer.exhausted()) {
          var publicSuffix = buffer.readUtf8LineStrict()
          if (publicSuffix.contains("*")) {
            // A wildcard rule, let's replace the wildcard with a value.
            publicSuffix = publicSuffix.replace("\\*".toRegex(), "square")
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        var failure: IOException? = null
    
        try {
          request = source.readUtf8LineStrict()
          if (request.isEmpty()) {
            throw ProtocolException("no request because the stream is exhausted")
          }
    
          while (true) {
            val header = source.readUtf8LineStrict()
            if (header.isEmpty()) {
              break
            }
            addHeaderLenient(headers, header)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          // Read the suffix of the previous chunk.
          if (bytesRemainingInChunk != NO_CHUNK_YET) {
            source.readUtf8LineStrict()
          }
          try {
            bytesRemainingInChunk = source.readHexadecimalUnsignedLong()
            val extensions = source.readUtf8LineStrict().trim()
            if (bytesRemainingInChunk < 0L || extensions.isNotEmpty() && !extensions.startsWith(";")) {
              throw ProtocolException(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
Back to top