- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 863 for val (0.05 sec)
-
okhttp/src/test/java/okhttp3/InterceptorTest.kt
server.enqueue( MockResponse.Builder() .code(500) .build(), ) val interceptor = Interceptor { chain: Interceptor.Chain -> val address = chain.connection()!!.route().address val sameHost = address.url.host val differentPort = address.url.port + 1 chain.proceed( chain.request().newBuilder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 27.8K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
return statusParts[2] } val headers: Headers val trailers: Headers // At most one of (body,webSocketListener,streamHandler) is non-null. val body: MockResponseBody? val webSocketListener: WebSocketListener? val streamHandler: StreamHandler? val inTunnel: Boolean val informationalResponses: List<MockResponse> val throttleBytesPerPeriod: Long val throttlePeriodNanos: Long
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 13.3K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
.build(), ) val startNanos = System.nanoTime() val connection = server.url("/").toUrl().openConnection() connection.doOutput = true connection.getOutputStream().write("ABCDEF".toByteArray(UTF_8)) val inputStream = connection.getInputStream() assertThat(inputStream.read()).isEqualTo(-1) val elapsedNanos = System.nanoTime() - startNanos
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.5K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
.setBody("ABCDEF") .setBodyDelay(1, TimeUnit.SECONDS), ) val startNanos = System.nanoTime() val connection = server.url("/").toUrl().openConnection() val inputStream = connection.getInputStream() assertThat(inputStream.read()).isEqualTo('A'.code) val elapsedNanos = System.nanoTime() - startNanos val elapsedMillis = TimeUnit.NANOSECONDS.toMillis(elapsedNanos)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.9K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt
*/ data class Case( val seqno: Int = 0, val wire: ByteString? = null, val headers: List<Map<String, String>>, ) : Cloneable { val headersList: List<Header> get() { val result = mutableListOf<Header>() for (inputHeader in headers) { val (key, value) = inputHeader.entries.iterator().next() result.add(Header(key, value)) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Dec 23 10:26:25 UTC 2023 - 1.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt
val deflater = MessageDeflater(false) val inflater = MessageInflater(false) val goldenValue = "".encodeUtf8() val deflated = deflater.deflate(goldenValue) assertThat(deflated).isEqualTo("00".decodeHex()) val inflated = inflater.inflate(deflated) assertThat(inflated).isEqualTo(goldenValue) } @Test fun `inflate deflate with context takeover`() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 06 05:31:00 UTC 2024 - 5K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/BuildScanInfoCollectingServices.kt
if (!isInBuildLogic) { // BuildScanExtension is only available in the gradle project val buildScan = gradleRootProject.extensions.findByType<BuildScanConfiguration>() val infoCollectedInBuildLogic = gradleRootProject.extensions.extraProperties.get("collectedInfo-${klass.simpleName}-build-logic")!!
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Apr 24 03:34:53 UTC 2024 - 3.2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt
@VisibleForTesting data class AcceptedApiChange( val type: String?, val member: String?, val acceptation: String?, val changes: List<String>? ) { override fun toString(): String = "Type: '$type', Member: '$member'" } @VisibleForTesting data class AcceptedApiChanges( val acceptedApiChanges: List<AcceptedApiChange>? )
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2.9K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt
override val timestampNs: Long, val route: Route, val call: Call, val exception: IOException, ) : ConnectionEvent() { override fun closes(event: ConnectionEvent): Boolean = event is ConnectStart && call == event.call && route == event.route } data class ConnectEnd( override val timestampNs: Long, override val connection: Connection, val route: Route, val call: Call,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.6K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/RunSurvey.kt
val okhttp = currentOkHttp(ianaSuitesNew) val okHttp_4_10 = historicOkHttp("4.10") val okHttp_3_14 = historicOkHttp("3.14") val okHttp_3_13 = historicOkHttp("3.13") val okHttp_3_11 = historicOkHttp("3.11") val okHttp_3_9 = historicOkHttp("3.9") val currentVm = currentVm(ianaSuitesNew) val conscrypt = if (includeConscrypt) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 3.5K bytes - Viewed (0)