- Sort Score
- Result 10 results
- Languages All
Results 441 - 450 of 567 for fun (0.02 sec)
-
samples/guide/src/main/java/okhttp3/recipes/kt/CustomTrust.kt
.Builder() .sslSocketFactory(certificates.sslSocketFactory(), certificates.trustManager) .build() } fun run() { showUrl("https://squareup.com/robots.txt") showUrl("https://publicobject.com/helloworld.txt") } private fun showUrl(url: String) { val request = Builder().url(url).build() client .newCall(request) .execute() .use { response ->
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.8K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt
class SniOverrideTest { var client = OkHttpClient .Builder() .build() @Test fun getWithCustomSocketFactory() { assumeTrue(Build.VERSION.SDK_INT >= 24) class CustomSSLSocketFactory( delegate: SSLSocketFactory, ) : DelegatingSSLSocketFactory(delegate) { override fun configureSocket(sslSocket: SSLSocket): SSLSocket { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.6K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/FunctionalTest.kt
javaCrash = false } }) private fun determineFlakyTestStrategy(stage: Stage): String { val stageName = StageName.values().first { it.stageName == stage.stageName.stageName } // See gradlebuild.basics.FlakyTestStrategy return if (stageName < StageName.READY_FOR_RELEASE) "exclude" else "include" } fun getTestTaskName( testCoverage: TestCoverage, subprojects: List<String>,
Registered: Wed Sep 10 11:36:15 UTC 2025 - Last Modified: Wed Feb 12 09:12:03 UTC 2025 - 5.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheControlTest.kt
import assertk.assertions.isFalse import assertk.assertions.isTrue import kotlin.test.Test import kotlin.time.Duration.Companion.seconds class CacheControlTest { @Test @Throws(Exception::class) fun emptyBuilderIsEmpty() { val cacheControl = CacheControl.Builder().build() assertThat(cacheControl.toString()).isEqualTo("") assertThat(cacheControl.noCache).isFalse() assertThat(cacheControl.noStore).isFalse()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.7K bytes - Viewed (0) -
mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/StartStopExtension.kt
import org.junit.platform.commons.support.AnnotationSupport.findAnnotatedFields /** Implements the policy specified by [StartStop]. */ internal class StartStopExtension : BeforeEachCallback, BeforeAllCallback { override fun beforeAll(context: ExtensionContext) { val store = context.getStore(Namespace.create(StartStop::class.java)) val staticFields = findAnnotatedFields( context.requiredTestClass,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jun 19 11:44:16 UTC 2025 - 2.3K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt
internal class StoriesTestProvider : SimpleProvider() { override fun arguments(): List<Any> = createStories(RAW_DATA) } private val bytesOut = Buffer() private val hpackWriter = Hpack.Writer(out = bytesOut) @ParameterizedTest @ArgumentsSource(StoriesTestProvider::class) fun testRoundTrip(story: Story) { assumeFalse( story === Story.MISSING,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/CompileAll.kt
platforms/core-runtime/base-services/build/generated-resources/build-receipt/org/gradle/build-receipt.properties """ }) { companion object { fun buildTypeId(model: CIBuildModel) = buildTypeId(model.projectId) fun buildTypeId(projectId: String) = "${projectId}_CompileAllBuild" }
Registered: Wed Sep 10 11:36:15 UTC 2025 - Last Modified: Mon Aug 25 20:21:47 UTC 2025 - 1.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionPool.kt
fun idleConnectionCount(): Int = delegate.idleConnectionCount() /** Returns total number of connections in the pool. */ fun connectionCount(): Int = delegate.connectionCount() internal val connectionListener: ConnectionListener get() = delegate.connectionListener /** Close and remove all idle connections in the pool. */ fun evictAll() { delegate.evictAll() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jun 03 17:10:08 UTC 2025 - 4.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeGetTest.kt
import kotlin.test.assertEquals import kotlin.test.assertFailsWith import okhttp3.MediaType.Companion.toMediaType open class MediaTypeGetTest : MediaTypeTest() { override fun parse(string: String): MediaType = string.toMediaType() override fun assertInvalid( string: String, exceptionMessage: String?, ) { val e = assertFailsWith<IllegalArgumentException> { parse(string) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/FileOperator.kt
* each [FileOperator] should not be. */ internal class FileOperator( private val fileChannel: FileChannel, ) { /** Write [byteCount] bytes from [source] to the file at [pos]. */ @Throws(IOException::class) fun write( pos: Long, source: Buffer, byteCount: Long, ) { if (byteCount < 0L || byteCount > source.size) { throw IndexOutOfBoundsException() } var mutablePos = pos
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2.4K bytes - Viewed (0)