- Sort Score
- Num 10 results
- Language All
Results 321 - 330 of 970 for val1 (0.02 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt
import okio.ForwardingSink import okio.buffer class UploadProgress { companion object { private const val IMGUR_CLIENT_ID = "9199fdef135c122" private val MEDIA_TYPE_PNG = "image/png".toMediaType() } private val client = OkHttpClient() @Throws(Exception::class) fun run() { val progressListener = object : ProgressListener { private var firstUpdate = trueCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Aug 30 17:01:12 GMT 2025 - 3.8K bytes - Click Count (0) -
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 Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Mar 11 22:47:14 GMT 2026 - 8.7K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostPath.kt
import okio.Path.Companion.toPath import okio.buffer import okio.fakefilesystem.FakeFileSystem class PostPath { private val client = OkHttpClient() private val fileSystem = FakeFileSystem() val path = "test.json".toPath() fun run() { fileSystem.write(path) { writeUtf8("{}") } val request = Request .Builder() .url("https://httpbin.org/anything")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.7K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
BeforeEachCallback, AfterEachCallback { private val clientEventsList = mutableListOf<String>() private var testClient: OkHttpClient? = null private var uncaughtException: Throwable? = null private lateinit var testName: String private var defaultUncaughtExceptionHandler: Thread.UncaughtExceptionHandler? = null private var taskQueuesWereIdle: Boolean = false private val connectionListener = RecordingConnectionListener()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/MessageInflater.kt
import java.io.Closeable import java.io.IOException import java.util.zip.Inflater import okio.Buffer import okio.InflaterSource private const val OCTETS_TO_ADD_BEFORE_INFLATION = 0x0000ffff class MessageInflater( private val noContextTakeover: Boolean, ) : Closeable { private val deflatedBytes = Buffer() // Lazily-created. private var inflater: Inflater? = null private var inflaterSource: InflaterSource? = null
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Sep 21 06:26:07 GMT 2025 - 2.4K bytes - Click Count (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt
*/ class JavaHttpClientTest { @JvmField @RegisterExtension val platform = PlatformRule() @StartStop private val server = MockWebServer() @Test fun get() { // Not available platform.expectFailureOnJdkVersion(8) val httpClient = HttpClient .newBuilder() .followRedirects(NORMAL) .build()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 25 13:16:02 GMT 2026 - 2.6K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/BucketExtensions.kt
// In this case, we simply put the elements into these buckets evenly. return list.chunked(list.size / expectedBucketNumber, smallElementAggregateFunction) } val largestElement = list.removeFirst()!! val largestElementSize = toIntFunction(largestElement) if (largestElementSize >= roughSizeOfEachBucket) { var bucketNumberOfFirstElement = determineBucketNumberForLargeElment(Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Feb 12 09:12:03 GMT 2025 - 5.7K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt
* of its component streams are closed. This class takes advantage of that. */ internal class MockWebServerSocket( val javaNetSocket: Socket, ) : Closeable, BufferedSocket { private val delegate = javaNetSocket.asOkioSocket() private val closedLatch = CountDownLatch(2) override val source: BufferedSource = object : ForwardingSource(delegate.source) { private var closed = false
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 3.3K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateSmokeTestedPluginsVersions.kt
abstract class UpdateSmokeTestedPluginsVersions : AbstractVersionsUpdateTask() { @TaskAction fun update() { val pluginIds = getPluginIds() val fetchedVersions = fetchLatestVersions(pluginIds) updateProperties(fetchedVersions) } private fun getPluginIds(): List<String> { val props = Properties() propertiesFile.get().asFile.reader().use { input -> props.load(input) }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Sep 18 16:06:17 GMT 2025 - 2.3K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/BaseGradleBuildType.kt
import model.Stage open class BaseGradleBuildType( open val stage: Stage? = null, open val failStage: Boolean = true, init: BaseGradleBuildType.() -> Unit = {}, ) : BuildType() { init { this.init() } } open class OsAwareBaseGradleBuildType( val os: Os, override val stage: Stage? = null, override val failStage: Boolean = true, init: OsAwareBaseGradleBuildType.() -> Unit = {},
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Jan 07 10:42:35 GMT 2026 - 602 bytes - Click Count (0)