Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WriteString (0.28 sec)

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

        @JvmStatic
        @JvmName("create")
        fun String.toResponseBody(contentType: MediaType? = null): ResponseBody {
          val (charset, finalContentType) = contentType.chooseCharset()
          val buffer = Buffer().writeString(this, charset)
          return buffer.asResponseBody(finalContentType, buffer.size)
        }
    
        /** Returns a new response body that transmits this byte array. */
        @JvmStatic
        @JvmName("create")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

            encodedCharBuffer = Buffer()
          }
    
          if (charset == null || charset == Charsets.UTF_8) {
            encodedCharBuffer.writeUtf8CodePoint(codePoint)
          } else {
            encodedCharBuffer.writeString(input, i, i + Character.charCount(codePoint), charset)
          }
    
          while (!encodedCharBuffer.exhausted()) {
            val b = encodedCharBuffer.readByte().toInt() and 0xff
            writeByte('%'.code)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 7.3K bytes
    - Viewed (0)
Back to top