Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 431 - 440 of 1,222 for rval (0.04 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

      }
    
      @Throws(IOException::class)
      fun openResponseBody(response: Response): ResponseBody {
        try {
          val contentType = response.header("Content-Type")
          val contentLength = codec.reportedContentLength(response)
          val rawSource = codec.openResponseBodySource(response)
          val source =
            ResponseBodySource(
              delegate = rawSource,
              contentLength = contentLength,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  2. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/GenerateLanguageAnnotations.kt

        @get:Inject
        abstract val workerExecutor: WorkerExecutor
    
        @get:CompileClasspath
        abstract val classpath: ConfigurableFileCollection
    
        @get:Input
        abstract val packageName: Property<String>
    
        @get:OutputDirectory
        abstract val destDir: DirectoryProperty
    
        @TaskAction
        fun generateAnnotations() {
            val queue = workerExecutor.classLoaderIsolation {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Apr 07 08:27:12 GMT 2023
    - 2K bytes
    - Click Count (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/SocketEffect.kt

       *
       * Using this as [MockResponse.onResponseEnd] is the default for HTTP/1.0.
       */
      public class CloseSocket(
        public val closeSocket: Boolean = true,
        public val shutdownInput: Boolean = false,
        public val shutdownOutput: Boolean = false,
      ) : SocketEffect
    
      /**
       * On HTTP/2, send a [GOAWAY frame](https://tools.ietf.org/html/rfc7540#section-6.8) immediately
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  4. okhttp/src/commonTest/kotlin/okhttp3/CompressionInterceptorTest.kt

    class CompressionInterceptorTest {
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      val source =
        Buffer().apply {
          write("Hello World".encodeUtf8())
        } as Source
    
      @Test
      fun emptyDoesntChangeRequestOrResponse() {
        val empty = CompressionInterceptor()
        val client =
          clientTestRule
            .newClientBuilder()
            .addInterceptor(empty)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Aug 01 06:04:22 GMT 2025
    - 3K bytes
    - Click Count (0)
  5. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.code-quality.gradle.kts

        id("codenarc")
        id("net.ltgt.errorprone")
        id("net.ltgt.nullaway")
    }
    
    open class ErrorProneProjectExtension(
        val disabledChecks: ListProperty<String>,
        val nullawayEnabled: Property<Boolean>
    )
    
    open class ErrorProneSourceSetExtension(
        val enabled: Property<Boolean>
    )
    
    val errorproneExtension = project.extensions.create<ErrorProneProjectExtension>(
        "errorprone",
        objects.listProperty<String>(),
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Oct 01 11:57:43 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  6. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/JvmCompilation.kt

     * compile tasks to permit some of these requirements.
     */
    abstract class JvmCompilation {
    
        abstract val name: String
    
        /**
         * Set this flag to true if the compilation compiles against JDK internal classes.
         *
         * This workaround should be used sparingly.
         */
        abstract val usesJdkInternals: Property<Boolean>
    
        /**
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Sep 19 05:45:14 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  7. build-logic/integration-testing/src/main/kotlin/gradlebuild.cross-version-tests.gradle.kts

            }
        }
    }
    val releasedVersions = gradleModule.identity.releasedVersions.orNull
    
    fun createQuickFeedbackTasks() {
        val testType = TestType.CROSSVERSION
        val defaultExecuter = "embedded"
        val prefix = testType.prefix
        testType.executers.forEach { executer ->
            val taskName = "$executer${prefix.capitalize()}Test"
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Sep 05 02:31:24 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/PostString.kt

    import okhttp3.RequestBody.Companion.toRequestBody
    
    class PostString {
      private val client = OkHttpClient()
    
      fun run() {
        val postBody =
          """
          |Releases
          |--------
          |
          | * _1.0_ May 6, 2013
          | * _1.1_ June 15, 2013
          | * _1.2_ August 11, 2013
          |
          """.trimMargin()
    
        val request =
          Request(
            url = "https://api.github.com/markdown/raw".toHttpUrl(),
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  9. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioProvisioningPlugin.kt

    
    // Android Studio Narwhal 3 | 2025.1.3
    // Find all references here https://developer.android.com/studio/archive
    // Update verification-metadata.xml
    const val DEFAULT_ANDROID_STUDIO_VERSION = "2025.1.3.7"
    const val UNPACK_ANDROID_STUDIO_TASK_NAME = "unpackAndroidStudio"
    const val ANDROID_STUDIO_INSTALL_PATH = "android-studio"
    
    private fun determineExtension(version: String): String {
        // since 2024.x Android Studio is only distributed as dmg
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Sep 19 16:20:44 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  10. okhttp-osgi-tests/src/test/kotlin/okhttp3/osgi/OsgiTest.kt

            "com.squareup.okhttp3.urlconnection",
          )
    
        /** Equinox must also be on the testing classpath.  */
        private const val RESOLVE_OSGI_FRAMEWORK = "org.eclipse.osgi"
        private const val RESOLVE_JAVA_VERSION = "JavaSE-1.8"
        private const val REPO_NAME = "OsgiTest"
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 5K bytes
    - Click Count (0)
Back to Top