- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 567 for fun (0.01 sec)
-
okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt
.message("OK") .code(200) .body( object : ResponseBody() { override fun contentType() = null override fun contentLength() = -1L override fun source() = object : ForwardingSource(Buffer()) { override fun close() { responseClosed = true } }.buffer() },
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 5.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixTesting.jvm.kt
actual class PublicSuffixTestRunner( klass: Class<*>, ) : Runner() { private val delegate = JUnit4(klass) override fun getDescription() = delegate.description override fun run(notifier: RunNotifier?) = delegate.run(notifier) override fun testCount() = delegate.testCount() } actual fun beforePublicSuffixTest() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 23 16:58:05 UTC 2025 - 1.1K bytes - Viewed (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt
private var client = clientTestRule .newClientBuilder() .eventListenerFactory(clientTestRule.wrap(eventListener)) .build() @AfterEach fun after() { listener.assertExhausted() } @Test fun event() { server.enqueue( MockResponse .Builder() .body( """ |data: hey | | """.trimMargin(),
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:47:47 UTC 2025 - 8.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingRequestBody.kt
private val delegate: RequestBody fun delegate(): RequestBody = delegate override fun contentType(): MediaType? = delegate.contentType() @Throws(IOException::class) override fun contentLength(): Long = delegate.contentLength() @Throws(IOException::class) override fun writeTo(sink: BufferedSink) { delegate.writeTo(sink) } override fun isDuplex(): Boolean = delegate.isDuplex()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.3K bytes - Viewed (0) -
okhttp-testing-support/src/test/kotlin/okhttp3/testing/PlatformRuleTest.kt
val platform = PlatformRule() @Test fun testMode() { println(PlatformRule.getPlatformSystemProperty()) println(Platform.get().javaClass.simpleName) } @Test fun testGreenCase() { } @Test fun testGreenCaseFailingOnLater() { platform.expectFailureFromJdkVersion(PlatformVersion.majorVersion + 1) } @Test fun failureCase() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Apr 15 14:55:09 UTC 2024 - 1.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/UnreadableResponseBody.kt
internal class UnreadableResponseBody( private val mediaType: MediaType?, private val contentLength: Long, ) : ResponseBody(), Source { override fun contentType() = mediaType override fun contentLength() = contentLength override fun source() = buffer() override fun read( sink: Buffer, byteCount: Long, ): Long = throw IllegalStateException( """
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 15:19:53 UTC 2025 - 1.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt
assertThat(request.headers["Cookie"]).isEqualTo("a=android; b=banana") } @Test fun cookieHandlerLikeAndroid() { server.enqueue(MockResponse()) val serverUrl = urlWithIpAddress(server, "/") val androidCookieHandler: CookieHandler = object : CookieHandler() { override fun get( uri: URI, map: Map<String, List<String>>, ) = mapOf( "Cookie" to
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 13K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Writer.kt
if (byteCount > length) writeContinuationFrames(streamId, byteCount - length) } } @Throws(IOException::class) fun flush() { withLock { if (closed) throw IOException("closed") sink.flush() } } @Throws(IOException::class) fun rstStream( streamId: Int, errorCode: ErrorCode, ) { withLock { if (closed) throw IOException("closed")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 11K bytes - Viewed (0) -
mockwebserver-deprecated/api/mockwebserver.api
public final fun requireClientAuth ()V public final fun setBodyLimit (J)V public final fun setDispatcher (Lokhttp3/mockwebserver/Dispatcher;)V public final fun setProtocolNegotiationEnabled (Z)V public final fun setProtocols (Ljava/util/List;)V public final fun setServerSocketFactory (Ljavax/net/ServerSocketFactory;)V public final fun shutdown ()V public final fun start ()V public final fun start (I)V
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jul 22 12:28:51 UTC 2023 - 10.2K bytes - Viewed (0) -
okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt
fun verify( hostname: String?, session: SSLSession?, ): Boolean = true override fun verify( certs: Array<out X509Certificate>?, hostname: String?, session: SSLSession?, ): Boolean = true } override fun trustManager(sslSocketFactory: SSLSocketFactory): X509TrustManager? = null override fun configureTlsExtensions(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.6K bytes - Viewed (0)