- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 51 for dataclass (0.08 seconds)
-
okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingResponseBody.kt
override fun contentLength(): Long = delegate.contentLength() override fun source(): BufferedSource = delegate.source() override fun toString(): String = javaClass.simpleName + "(" + delegate.toString() + ")" init { requireNotNull(delegate) { "delegate == null" } this.delegate = delegate }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.2K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingRequestBody.kt
@Throws(IOException::class) override fun writeTo(sink: BufferedSink) { delegate.writeTo(sink) } override fun isDuplex(): Boolean = delegate.isDuplex() override fun toString(): String = javaClass.simpleName + "(" + delegate.toString() + ")" init { requireNotNull(delegate) { "delegate == null" } this.delegate = delegate }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt
null } catch (e: RuntimeException) { // Throws InaccessibleObjectException (added in JDK9) on JDK 17 due to // JEP 403 Strongly Encapsulate JDK Internals. if (e.javaClass.name != "java.lang.reflect.InaccessibleObjectException") { throw e } null } } /** * Configure TLS extensions on `sslSocket` for `route`. */Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 8.1K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt
get() = null /** Returns if the event closes this event, or null if this is no open event. */ open fun closes(event: ConnectionEvent): Boolean? = null val name: String get() = javaClass.simpleName data class ConnectStart( override val timestampNs: Long, val route: Route, val call: Call, ) : ConnectionEvent() data class ConnectFailed( override val timestampNs: Long,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri May 30 21:28:20 GMT 2025 - 2.6K bytes - Click Count (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
val failingResponse = brotliInterceptor.decompress(response) failingResponse.body.string() }.also { ioe -> assertThat(ioe).hasMessage("Brotli stream decoding failed") assertThat(ioe.cause?.javaClass?.simpleName).isEqualTo("BrotliRuntimeException") } } @Test fun testSkipUncompressNoContentResponse() { val response = response("https://httpbin.org/brotli", EMPTY) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Aug 22 08:12:58 GMT 2025 - 4.4K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/BouncyCastleSocketAdapter.kt
val isSupported: Boolean = try { // Trigger an early exception over a fatal error, prefer a RuntimeException over Error. Class.forName("org.bouncycastle.jsse.provider.BouncyCastleJsseProvider", false, javaClass.classLoader) true } catch (_: ClassNotFoundException) { false } }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.3K bytes - Click Count (0) -
android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt
override fun connectionAcquired( call: Call, connection: Connection, ) { socketClass = connection.socket().javaClass.name } }, ), ).build() val response = client.newCall(request).execute() response.use {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 29.9K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/ConscryptSocketAdapter.kt
} val isSupported: Boolean = try { // Trigger an early exception over a fatal error, prefer a RuntimeException over Error. Class.forName("org.conscrypt.Conscrypt\$Version", false, javaClass.classLoader) when { // Bump this version if we ever have a binary incompatibility Conscrypt.isAvailable() && atLeastVersion(2, 1, 0) -> true else -> false }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 3K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt
Platform.resetForTests(platform) } else { Platform.resetForTests() } if (requiredPlatformName != null) { System.err.println("Running with ${Platform.get().javaClass.simpleName}") } } fun resetPlatform() { if (platform != null) { Platform.resetForTests() } } fun expectFailureOnConscryptPlatform() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 15.5K bytes - Click Count (1) -
fastapi/_compat/shared.py
import types import typing import warnings from collections import deque from collections.abc import Mapping, Sequence from dataclasses import is_dataclass from typing import ( Annotated, Any, TypeGuard, TypeVar, Union, get_args, get_origin, ) from fastapi.types import UnionType from pydantic import BaseModel from pydantic.version import VERSION as PYDANTIC_VERSION
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:32:12 GMT 2026 - 6.9K bytes - Click Count (0)