Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 723 for charsets (0.06 seconds)

  1. build-logic/src/main/kotlin/okhttp.jvm-conventions.gradle.kts

    }
    
    // Introduce in a separate change
    //configureJavaCompatibility(javaVersion = 8)
    
    configureKotlinCompatibility(version = version("kotlinCoreLibrariesVersion"))
    
    tasks.withType<JavaCompile> {
      options.encoding = Charsets.UTF_8.toString()
      if (name.contains("Java9")) {
        sourceCompatibility = "9"
        targetCompatibility = "9"
      } else {
        sourceCompatibility = "1.8"
        targetCompatibility = "1.8"
      }
    }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Feb 09 14:40:26 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  2. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractVersionsUpdateTask.kt

            PropertiesUtils.store(
                Properties().apply(populateProperties),
                propertiesFile.get().asFile,
                comment.get(),
                Charsets.ISO_8859_1,
                "\n"
            )
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Oct 24 09:10:28 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Challenge.kt

      val charset: Charset
        get() {
          val charset = authParams["charset"]
          if (charset != null) {
            try {
              return Charset.forName(charset)
            } catch (ignore: Exception) {
            }
          }
          return ISO_8859_1
        }
    
      constructor(scheme: String, realm: String) : this(scheme, singletonMap("realm", realm))
    
      init {
        val newAuthParams = mutableMapOf<String?, String>()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue May 27 15:01:35 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  4. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

    internal object DnsRecordCodec {
      private const val SERVFAIL = 2
      private const val NXDOMAIN = 3
      const val TYPE_A = 0x0001
      const val TYPE_AAAA = 0x001c
      private const val TYPE_PTR = 0x000c
      private val ASCII = Charsets.US_ASCII
    
      fun encodeQuery(
        host: String,
        type: Int,
      ): ByteString =
        Buffer()
          .apply {
            writeShort(0) // query id
            writeShort(256) // flags with recursion
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  5. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt

        if (!matchesSocket(sslSocket)) {
          return null
        }
    
        return try {
          val alpnResult = getAlpnSelectedProtocol.invoke(sslSocket) as ByteArray?
          alpnResult?.toString(Charsets.UTF_8)
        } catch (e: IllegalAccessException) {
          throw AssertionError(e)
        } catch (e: InvocationTargetException) {
          // https://github.com/square/okhttp/issues/5587
          val cause = e.cause
          when {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  6. okhttp/src/androidMain/baseline-prof.txt

    HSPLokhttp3/MediaType;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
    HSPLokhttp3/MediaType;->charset(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
    HSPLokhttp3/OkHttpClient$Builder;-><init>()V
    HSPLokhttp3/OkHttpClient$Companion;-><init>(Landroidx/lifecycle/viewmodel/R$id;)V
    HSPLokhttp3/OkHttpClient;-><clinit>()V
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Dec 30 23:28:56 GMT 2024
    - 127.9K bytes
    - Click Count (1)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/url/-Url.kt

          if (encodedCharBuffer == null) {
            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
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  8. okcurl/build.gradle.kts

        from("src/main/resources-templates")
        into(layout.buildDirectory.dir("generated/resources-templates"))
        expand("projectVersion" to "${project.version}")
        filteringCharset = Charsets.UTF_8.toString()
      }
    
    configure<JavaPluginExtension> {
      sourceSets.getByName("main").resources.srcDir(copyResourcesTemplates.get().outputs)
    }
    
    dependencies {
      api(projects.okhttp)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        val eventListener: EventListener = factory.create(FailingCall())
      }
    
      @Test
      fun mediaType() {
        val mediaType: MediaType = "".toMediaType()
        val defaultCharset: Charset? = mediaType.charset()
        val charset: Charset? = mediaType.charset(Charsets.UTF_8)
        val type: String = mediaType.type
        val subtype: String = mediaType.subtype
        val parse: MediaType? = "".toMediaTypeOrNull()
      }
    
      @Test
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
  10. build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts

        capabilities.forEach {
            it.configure(dependencies.components, configurations)
        }
    }
    
    fun readCapabilities(source: File): List<CapabilitySpec> {
        JsonReader(source.reader(Charsets.UTF_8)).use { reader ->
            reader.strictness = Strictness.LENIENT
            return Gson().fromJson(reader)
        }
    }
    
    inline
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 26 09:04:32 GMT 2026
    - 9.5K bytes
    - Click Count (0)
Back to Top