Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 330 for charset (0.16 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    import java.nio.charset.Charset
    import java.util.Collections
    import java.util.Locale
    import java.util.TimeZone
    import java.util.concurrent.ThreadFactory
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.locks.ReentrantLock
    import kotlin.text.Charsets.UTF_16BE
    import kotlin.text.Charsets.UTF_16LE
    import kotlin.text.Charsets.UTF_32BE
    import kotlin.text.Charsets.UTF_32LE
    import kotlin.text.Charsets.UTF_8
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

     * @param charset which charset to use, null equals UTF-8.
     */
    internal fun String.canonicalizeWithCharset(
      pos: Int = 0,
      limit: Int = length,
      encodeSet: String,
      alreadyEncoded: Boolean = false,
      strict: Boolean = false,
      plusIsSpace: Boolean = false,
      unicodeAllowed: Boolean = false,
      charset: Charset? = null,
    ): String {
      var codePoint: Int
      var i = pos
    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)
  3. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import java.io.IOException
    import java.nio.charset.StandardCharsets
    import kotlin.test.assertFailsWith
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val challenge = Challenge("", mapOf("" to ""))
        val scheme: String = challenge.scheme()
        val authParams: Map<String?, String> = challenge.authParams()
        val realm: String? = challenge.realm()
        val charset: Charset = challenge.charset()
      }
    
      @Test @Disabled
      fun cipherSuite() {
        val cipherSuite: CipherSuite = CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
        val javaName: String = cipherSuite.javaName()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/ResponseBodyTest.kt

    import okio.IOException
    import okio.Source
    import okio.buffer
    
    class ResponseBodyTest {
      @Test
      fun sourceEmpty() {
        val mediaType = if (null == null) null else "any/thing; charset=${null}".toMediaType()
        val body = "".decodeHex().toResponseBody(mediaType)
        val source = body.source()
        assertThat(source.exhausted()).isTrue()
        assertThat(source.readUtf8()).isEqualTo("")
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4K bytes
    - Viewed (0)
  6. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

        assertThat(request.method).isEqualTo("POST")
        assertThat(request.url.toString()).isEqualTo("http://example.com/")
        assertThat(body!!.contentType().toString()).isEqualTo(
          "application/x-www-form-urlencoded; charset=utf-8",
        )
        assertThat(bodyAsString(body)).isEqualTo("foo")
      }
    
      @Test
      fun dataPut() {
        val request = fromArgs("-d", "foo", "-X", "PUT", "http://example.com").createRequest()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertLogEqual("Content-Type: text/plain; charset=utf-8")
          .assertLogEqual("--> END POST")
          .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms\)"""))
          .assertLogEqual("Content-Length: 0")
          .assertLogEqual("<-- END HTTP")
          .assertNoMoreLogs()
        networkLogs
          .assertLogEqual("--> POST $url http/1.1")
          .assertLogEqual("Content-Type: text/plain; charset=utf-8")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CommonRequestBodyTest.kt

        val contentType = requestBody.contentType()!!
    
        assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8")
        assertThat(contentType.parameter("charset")).isEqualTo("utf-8")
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

     * limitations under the License.
     */
    @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
    
    package okhttp3.logging
    
    import java.io.IOException
    import java.nio.charset.Charset
    import java.util.TreeSet
    import java.util.concurrent.TimeUnit
    import okhttp3.Headers
    import okhttp3.HttpUrl
    import okhttp3.Interceptor
    import okhttp3.OkHttpClient
    import okhttp3.Response
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  10. build-logic/buildquality/src/main/kotlin/gradlebuild.verify-build-environment.gradle.kts

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    import java.nio.charset.Charset
    
    tasks.register("verifyIsProductionBuildEnvironment") {
        doLast {
            val systemCharset = Charset.defaultCharset().name()
            assert(systemCharset == "UTF-8") {
                "Platform encoding must be UTF-8. Is currently $systemCharset. Set -Dfile.encoding=UTF-8"
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Feb 01 09:48:30 GMT 2021
    - 941 bytes
    - Viewed (0)
Back to top