Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 969 for val2 (0.04 sec)

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

     */
    class RealConnection internal constructor(
      val taskRunner: TaskRunner,
      val connectionPool: RealConnectionPool,
      override val route: Route,
      /** The low-level TCP socket. */
      private val rawSocket: JavaNetSocket,
      /**
       * The application layer socket. Either an [SSLSocket] layered over [rawSocket], or [rawSocket]
       * itself if this connection does not use SSL.
       */
      private val javaNetSocket: JavaNetSocket,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:55:03 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  2. internal/cachevalue/cache.go

    }
    
    func (t *Cache[T]) update(ctx context.Context) error {
    	val, err := t.updateFn(ctx)
    	if err != nil {
    		if t.opts.ReturnLastGood && t.val.Load() != nil {
    			// Keep last good value, so update
    			// does not return an error.
    			return nil
    		}
    		return err
    	}
    
    	t.val.Store(&val)
    	t.lastUpdateMs.Store(time.Now().UnixMilli())
    	return nil
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri May 24 12:50:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. 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,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  4. 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 {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Apr 07 08:27:12 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. 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
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. 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)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. 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>(),
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Oct 01 11:57:43 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. 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>
    
        /**
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Sep 19 05:45:14 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. 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"
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Sep 05 02:31:24 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. 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(),
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top