- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 612 for Val (0.03 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
* arrives. https://github.com/square/okhttp/issues/5578 */ private fun timeToFirstByte() { val applicationInterceptorDelay = 250L val networkInterceptorDelay = 250L val requestBodyDelay = 250L val responseHeadersStartDelay = 250L val responseBodyStartDelay = 250L val responseBodyEndDelay = 250L // Warm up the client so the timing part of the test gets a pooled connection.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 60.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartBody.kt
@Suppress("NAME_SHADOWING") class MultipartBody internal constructor( private val boundaryByteString: ByteString, @get:JvmName("type") val type: MediaType, @get:JvmName("parts") val parts: List<Part>, ) : RequestBody() { private val contentType: MediaType = "$type; boundary=$boundary".toMediaType() private var contentLength = -1L @get:JvmName("boundary") val boundary: String get() = boundaryByteString.utf8()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.9K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
override fun intercept(chain: Interceptor.Chain): Response { val level = this.level val request = chain.request() if (level == Level.NONE) { return chain.proceed(request) } val logBody = level == Level.BODY val logHeaders = logBody || level == Level.HEADERS val requestBody = request.body val connection = chain.connection() var requestStartMessage =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 11.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
server.enqueue(MockResponse(body = "abc")) server.enqueue(MockResponse(body = "def")) val request = Request(server.url("/")) val call = client.newCall(request) val response1 = call.execute() val cloned = call.clone() val response2 = cloned.execute() assertThat("abc").isEqualTo(response1.body.string()) assertThat("def").isEqualTo(response2.body.string()) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 8.4K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt
} data class Inline1( override val rangeStart: Int, private val mappedTo: ByteString, ) : MappedRange { val b1: Int get() { val b3bit8 = mappedTo[0] and 0x80 != 0 return if (b3bit8) 123 else 122 } val b2: Int get() = mappedTo[0] and 0x7f } data class Inline2( override val rangeStart: Int, private val mappedTo: ByteString, ) : MappedRange {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
var testLogHandler = TestLogHandler(OkHttpClient::class.java) @StartStop private val webServer = MockWebServer() private val handshakeCertificates = platform.localhostHandshakeCertificates() private val clientListener = WebSocketRecorder("client") private val serverListener = WebSocketRecorder("server") private val random = Random(0) private var client = clientTestRule .newClientBuilder()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 35.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 10.9K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/UserAgentCapabilities.kt
val npnProtocols: List<String>, val platform: String?, val requiresSha2: Boolean, val signatureAlgorithms: List<Int>, val suiteIds: List<Int>, val suiteNames: List<String>, val supportsCompression: Boolean, val supportsNpn: Boolean, val supportsRi: Boolean, val supportsSni: Boolean, val supportsStapling: Boolean, val supportsTickets: Boolean, val userAgent: String?, val version: String,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Apr 02 01:44:15 UTC 2024 - 1.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2.kt
const val TYPE_PING = 0x6 const val TYPE_GOAWAY = 0x7 const val TYPE_WINDOW_UPDATE = 0x8 const val TYPE_CONTINUATION = 0x9 const val FLAG_NONE = 0x0 const val FLAG_ACK = 0x1 // Used for settings and ping. const val FLAG_END_STREAM = 0x1 // Used for headers and data. const val FLAG_END_HEADERS = 0x4 // Used for headers and continuation. const val FLAG_END_PUSH_PROMISE = 0x4
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 5.7K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
public val failHandshake: Boolean public val onRequestStart: SocketEffect? public val doNotReadRequestBody: Boolean public val onRequestBody: SocketEffect? public val onResponseStart: SocketEffect? public val onResponseBody: SocketEffect? public val onResponseEnd: SocketEffect? public val shutdownServer: Boolean public val headersDelayNanos: Long public val bodyDelayNanos: Long public val trailersDelayNanos: Long
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 17.8K bytes - Viewed (0)