Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 65 for Wain (0.5 sec)

  1. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsClient.kt

            userAgent = userAgent.name,
            version = userAgent.version,
            platform = userAgent.platform,
            enabled = userAgent.suiteNames.map { SuiteId(null, it) },
          )
        }
      }
    }
    
    suspend fun main() {
      val sslLabsClient =
        SslLabsClient(
          callFactory = OkHttpClient(),
        )
    
      for (client in sslLabsClient.clients()) {
        println(client)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt

            if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
            println(response.request.url)
          }
        } finally {
          server.shutdown()
        }
      }
    }
    
    fun main() {
      DevServer().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt

          println(response.body.string())
        }
      }
    
      companion object {
        val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType()
      }
    }
    
    fun main() {
      PostStreaming().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  4. native-image-tests/src/main/kotlin/okhttp3/TestRegistration.kt

        clazz.declaredConstructors.forEach {
          RuntimeReflection.register(it)
        }
      }
    
      private fun registerKnownTests(access: Feature.BeforeAnalysisAccess) {
        val knownTestFile = File("src/main/resources/testlist.txt").absoluteFile
        knownTestFile.readLines().forEach {
          try {
            val testClass = access.findClassByName(it)
    
            if (testClass != null) {
              access.registerAsUsed(testClass)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  5. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt

    import com.squareup.kotlinpoet.FileSpec
    import com.squareup.kotlinpoet.KModifier
    import com.squareup.kotlinpoet.PropertySpec
    import java.io.File
    import okio.FileSystem
    import okio.Path.Companion.toPath
    
    fun main(vararg args: String) {
      val data = loadIdnaMappingTableData()
      val file = generateMappingTableFile(data)
      file.writeTo(File(args[0]))
    }
    
    fun loadIdnaMappingTableData(): IdnaMappingTableData {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

    import java.net.InetAddress
    import java.net.UnknownHostException
    import java.util.concurrent.CountDownLatch
    import okio.IOException
    
    /**
     * An async domain name service that resolves IP addresses for host names.
     *
     * The main implementations will typically be implemented using specific DNS libraries such as
     *  * Android DnsResolver
     *  * OkHttp DnsOverHttps
     *  * dnsjava Resolver
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  7. gradlew

    #       Darwin, MinGW, and NonStop.
    #
    #   (3) This script is generated from the Groovy template
    #       https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
    #       within the Gradle project.
    #
    #       You can find Gradle at https://github.com/gradle/gradle/.
    #
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 24 09:00:26 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  8. native-image-tests/src/main/kotlin/okhttp3/RunTests.kt

    import org.junit.platform.launcher.core.LauncherFactory
    import org.junit.platform.launcher.listeners.SummaryGeneratingListener
    
    /**
     * Graal main method to run tests with minimal reflection and automatic settings.
     * Uses the test list in native-image-tests/src/main/resources/testlist.txt.
     */
    fun main(vararg args: String) {
      System.setProperty("junit.jupiter.extensions.autodetection.enabled", "true")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. okhttp/build.gradle.kts

      id("com.vanniktech.maven.publish.base")
      id("binary-compatibility-validator")
    }
    
    // Build & use okhttp3/internal/-InternalVersion.kt
    val copyKotlinTemplates = tasks.register<Copy>("copyKotlinTemplates") {
      from("src/main/kotlinTemplates")
      into("$buildDir/generated/sources/kotlinTemplates")
      expand("projectVersion" to project.version)
      filteringCharset = Charsets.UTF_8.toString()
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/ConfigureTimeouts.kt

            .build()
    
        client.newCall(request).execute().use { response ->
          println("Response completed: $response")
        }
      }
    }
    
    fun main() {
      ConfigureTimeouts().run()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
Back to top