Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 55 for character (0.19 sec)

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

        val part = parts.nextPart()!!
        assertThat(part.headers).isEqualTo(headersOf())
        assertThat(part.body.readUtf8()).isEqualTo("abcd")
    
        assertThat(parts.nextPart()).isNull()
      }
    
      @Test fun `other characters after boundary`() {
        val multipart =
          """
          |--simple boundary hi
          """.trimMargin()
            .replace(Regex("(?m)simple boundary$"), "simple boundary ")
            .replace("\n", "\r\n")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/internal/IsProbablyUtf8.kt

          if (prefix.exhausted()) {
            break
          }
          val codePoint = prefix.readUtf8CodePoint()
          if (Character.isISOControl(codePoint) && !Character.isWhitespace(codePoint)) {
            return false
          }
        }
        return true
      } catch (_: EOFException) {
        return false // Truncated UTF-8 sequence.
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

        executeSynchronously(Request(server.url("/")))
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
      }
    
      /** We forbid non-ASCII characters in outgoing request headers, but accept UTF-8.  */
      @Test
      fun responseHeaderParsingIsLenient() {
        val headersBuilder = Headers.Builder()
        headersBuilder.add("Content-Length", "0")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  4. okhttp-android/src/main/baseline-prof.txt

    HSPLokio/Path$Companion;->get(Ljava/lang/String;Z)Lokio/Path;
    HSPLokio/Path;-><clinit>()V
    HSPLokio/Path;-><init>(Lokio/ByteString;)V
    HSPLokio/Path;->resolve(Ljava/lang/String;)Lokio/Path;
    HSPLokio/Path;->volumeLetter()Ljava/lang/Character;
    HSPLokio/RealBufferedSink;-><init>(Lokio/Sink;)V
    HSPLokio/RealBufferedSink;->close()V
    HSPLokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
    HSPLokio/RealBufferedSink;->flush()V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

                partCount++
                break@afterBoundaryLoop
              }
    
              1 -> {
                // "--": No more parts.
                if (whitespace) throw ProtocolException("unexpected characters after boundary")
                if (partCount == 0) throw ProtocolException("expected at least 1 part")
                noMoreParts = true
                return null
              }
    
              2, 3 -> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

            },
        )
    
      /**
       * Permits alphanumerics, spaces, and these:
       *
       * ```
       *   ' () + , - . / : = ?
       * ```
       *
       * TODO(jwilson): constrain to printable string characters.
       */
      val PRINTABLE_STRING =
        BasicDerAdapter(
          name = "PRINTABLE STRING",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 19L,
          codec =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/FormBodyTest.kt

        assertThat(formEncode(255)).isEqualTo("%C3%BF")
      }
    
      @Throws(IOException::class)
      private fun formEncode(codePoint: Int): String {
        // Wrap the codepoint with regular printable characters to prevent trimming.
        val body =
          FormBody.Builder()
            .add("a", String(intArrayOf('b'.code, codePoint, 'c'.code), 0, 3))
            .build()
        val buffer = Buffer()
        body.writeTo(buffer)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/idn/StringprepTablesReaderTest.kt

        buffer.writeUtf8(
          """
          |  0221
          |  0234-024F
          |  0000-001F; [CONTROL CHARACTERS]
          |  007F; DELETE
          |
          """.trimMargin(),
        )
    
        val rangeList = buffer.readCodePointSet()
        assertEquals(
          listOf(
            0x0221..0x0221,
            0x0234..0x024f,
            // [CONTROL CHARACTERS].
            0x0000..0x001f,
            // DELETE.
            0x007f..0x007f,
          ),
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_2x.md

        the timeouts manually.
    
     *  **OkHttp now rejects request headers that contain invalid characters.** This
        includes potential security problems (newline characters) as well as simple
        non-ASCII characters (including international characters and emoji).
    
     *  **Call canceling is more reliable.**  We had a bug where a socket being
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  10. okhttp/src/test/resources/okhttp3/internal/idn/rfc3454.C.9.txt

       E0001; LANGUAGE TAG
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 60 bytes
    - Viewed (0)
Back to top