Search Options

Results per page
Sort
Preferred Languages
Advance

Results 551 - 560 of 863 for Val (0.02 sec)

  1. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

     */
    class ApacheHttpClientTest {
      private val httpClient = HttpClients.createDefault()
    
      @AfterEach fun tearDown() {
        httpClient.close()
      }
    
      @Test fun get(server: MockWebServer) {
        server.enqueue(
          MockResponse.Builder()
            .body("hello, Apache HttpClient 5.x")
            .build(),
        )
    
        val request = HttpGet(server.url("/").toUri())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.collect-failed-tasks.gradle.kts

    abstract class CollectFailedTaskPathsBuildService : AbstractBuildScanInfoCollectingService() {
        private val failedTaskPaths = CopyOnWriteArrayList<String>()
        override val collectedInformation: Serializable = failedTaskPaths
    
        override fun shouldInclude(taskPath: String): Boolean {
            // https://github.com/gradle/gradle/issues/21351
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jun 20 08:07:01 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/AbstractBuildScanInfoCollectingService.kt

         */
        abstract val collectedInformation: Serializable
    
        interface Params : BuildServiceParameters {
            val monitoredTaskPaths: SetProperty<String>
        }
    
        override fun onFinish(event: FinishEvent) {
            if (event !is TaskFinishEvent) {
                return
            }
    
            val taskPath = event.descriptor.taskPath
            if (shouldInclude(taskPath)) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Aug 11 07:01:27 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  4. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupRootPlugin.kt

            require(project.rootProject == project) { "This plugin should be applied to root project!" }
            val globalExtension = project.extensions.create<TestFilesCleanupBuildServiceRootExtension>("testFilesCleanupRoot")
            project.gradle.taskGraph.whenReady {
                val testFilesCleanupService = project.gradle.sharedServices.registerIfAbsent("testFilesCleanupBuildService", TestFilesCleanupService::class.java) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 06 10:57:13 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/DispatcherCleanupTest.kt

    package okhttp3
    
    import java.io.IOException
    import mockwebserver3.MockWebServer
    import org.junit.jupiter.api.Test
    
    class DispatcherCleanupTest {
      @Test
      fun testFinish(server: MockWebServer) {
        val okhttp = OkHttpClient()
        val callback =
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {}
    
            override fun onResponse(
              call: Call,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/HasKotlinFlagsMetadataQuery.kt

        }
    
    
    private
    fun hasClassAttribute(kmClassSupplier: Supplier<KmClass>, memberType: MemberType, jvmSignature: String, predicate: AttributePredicate): Boolean {
        val kmClass = kmClassSupplier.get()
        return when (memberType) {
            MemberType.TYPE -> hasTypeAttribute(kmClass, jvmSignature, predicate)
            MemberType.FIELD -> hasPropertyAttribute(kmClass::properties, jvmSignature, predicate)
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 11:57:24 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt

       * Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the request
       * URL is. Includes the query component if it exists.
       */
      fun requestPath(url: HttpUrl): String {
        val path = url.encodedPath
        val query = url.encodedQuery
        return if (query != null) "$path?$query" else path
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. docs/features/https.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val client: OkHttpClient
    
          init {
            val trustManager = trustManagerForCertificates(trustedCertificatesInputStream())
            val sslContext = SSLContext.getInstance("TLS")
            sslContext.init(null, arrayOf<TrustManager>(trustManager), null)
            val sslSocketFactory = sslContext.socketFactory
    
            client = OkHttpClient.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

        }
    
      private fun charset() = contentType().charsetOrUtf8()
    
      override fun close() = commonClose()
    
      internal class BomAwareReader(
        private val source: BufferedSource,
        private val charset: Charset,
      ) : Reader() {
        private var closed: Boolean = false
        private var delegate: Reader? = null
    
        @Throws(IOException::class)
        override fun read(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/ConfigureTimeouts.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    class ConfigureTimeouts {
      private val client: OkHttpClient =
        OkHttpClient.Builder()
          .connectTimeout(5, TimeUnit.SECONDS)
          .writeTimeout(5, TimeUnit.SECONDS)
          .readTimeout(5, TimeUnit.SECONDS)
          .callTimeout(10, TimeUnit.SECONDS)
          .build()
    
      fun run() {
        val request =
          Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top