Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 521 - 530 of 969 for val3 (0.08 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealResponseBody.kt

    class RealResponseBody(
      /**
       * Use a string to avoid parsing the content type until needed. This also defers problems caused
       * by malformed content types.
       */
      private val contentTypeString: String?,
      private val contentLength: Long,
      private val source: BufferedSource,
    ) : ResponseBody() {
      override fun contentLength(): Long = contentLength
    
      override fun contentType(): MediaType? = contentTypeString?.toMediaTypeOrNull()
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  2. android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt

            .build()
      }
    
      @Test
      fun testRequestExternal() {
        assumeNetwork()
    
        val request = Request("https://www.google.com/robots.txt".toHttpUrl())
    
        val networkRequest =
          request
            .newBuilder()
            .build()
    
        val call = client.newCall(networkRequest)
    
        call.execute().use { response ->
          assertThat(response.code).isEqualTo(200)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Jul 22 20:03:31 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.asRequestBody
    
    class PostMultipart {
      private val client = OkHttpClient()
    
      fun run() {
        // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image
        val requestBody =
          MultipartBody
            .Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("title", "Square Logo")
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  4. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

      @Test
      fun testGoogleDotComEncoding() {
        val encoded = encodeQuery("google.com", TYPE_A)
        assertThat(encoded).isEqualTo("AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ")
      }
    
      private fun encodeQuery(
        host: String,
        type: Int,
      ): String = DnsRecordCodec.encodeQuery(host, type).base64Url().replace("=", "")
    
      @Test
      fun testGoogleDotComEncodingWithIPv6() {
        val encoded = encodeQuery("google.com", TYPE_AAAA)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu May 29 20:09:10 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  5. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt

    @CacheableTask
    abstract class AlphabeticalAcceptedApiChangesTask : AbstractAcceptedApiChangesMaintenanceTask() {
    
        @TaskAction
        fun execute() {
            val originalChanges = loadChanges()
            val sortedChanges = originalChanges.mapValues {
                sortChanges(it.value)
            }
    
            val mismatches = originalChanges.mapValues {
                findMismatches(it.value, sortedChanges[it.key]!!)
            }.filterValues {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Nov 29 14:03:44 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild.update-versions.gradle.kts

        currentReleasedVersion = ReleasedVersion(
            project.findProperty("currentReleasedVersion").toString(),
            project.findProperty("currentReleasedVersionBuildTimestamp").toString()
        )
    }
    
    val updateAgpVersions = tasks.register<UpdateAgpVersions>("updateAgpVersions") {
        comment = " Generated - Update by running `./gradlew updateAgpVersions`"
        currentGradleVersion = gradleModule.identity.version
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Oct 24 09:10:28 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  7. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportAggregationParameter.kt

    import org.gradle.api.provider.Property
    import org.gradle.workers.WorkParameters
    
    
    interface IncubatingApiReportAggregationParameter : WorkParameters {
        val reports: ConfigurableFileCollection
        val htmlReportFile: RegularFileProperty
        val csvReportFile: RegularFileProperty
        val currentCommit: Property<String>
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu May 29 08:21:16 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  8. mockwebserver/README.md

      // instance for every unit test.
      val server = MockWebServer()
    
      // Schedule some responses.
      server.enqueue(MockResponse(body = "hello, world!"))
      server.enqueue(MockResponse(body = "sup, bra?"))
      server.enqueue(MockResponse(body = "yo dog"))
    
      // Start the server.
      server.start()
    
      // Ask the server for its URL. You'll need this to make HTTP requests.
      val baseUrl = server.url("/v1/chat/")
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Oct 30 21:39:59 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  9. build-logic/idea/src/main/kotlin/gradlebuild.ide.gradle.kts

    import org.jetbrains.gradle.ext.RunConfigurationContainer
    
    plugins {
        id("org.jetbrains.gradle.plugin.idea-ext")
    }
    
    object GradleCopyright {
        const val profileName = "ASL2"
        const val keyword = "Copyright"
        const val notice =
            """Copyright ${"$"}{today.year} the original author or authors.
    
    Licensed under the Apache License, Version 2.0 (the "License");
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Jan 30 10:41:28 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/AddressPolicy.kt

       */
      @JvmField val minimumConcurrentCalls: Int = 0,
      /** How long to wait to retry pre-emptive connection attempts that fail. */
      @JvmField val backoffDelayMillis: Long = 60 * 1000,
      /** How much jitter to introduce in connection retry backoff delays */
      @JvmField val backoffJitterMillis: Int = 100,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Jun 03 17:10:08 GMT 2025
    - 1.3K bytes
    - Click Count (0)
Back to Top