- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 880 for val3 (0.03 sec)
-
okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt
) } } @Test fun byteStringEmpty() { val body = body("") assertThat(body.byteString()).isEqualTo(ByteString.EMPTY) } @Test fun byteStringSeesBom() { val body = body("efbbbf68656c6c6f") val actual = body.byteString() val expected: ByteString = "efbbbf68656c6c6f".decodeHex() assertThat(actual).isEqualTo(expected) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 13K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MultipartReader.kt
* * Typical use loops over the parts in sequence: * * ```kotlin * val response: Response = call.execute() * val multipartReader = MultipartReader(response.body!!) * * multipartReader.use { * while (true) { * val part = multipartReader.nextPart() ?: break * process(part.headers, part.body) * } * } * ``` *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestTest.kt
import okio.ByteString.Companion.encodeUtf8 import org.junit.jupiter.api.Test class RequestTest { @Test fun constructor() { val url = "https://example.com/".toHttpUrl() val body = "hello".toRequestBody() val headers = headersOf("User-Agent", "RequestTest") val method = "PUT" val request = Request( url = url, headers = headers, method = method, body = body, )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
address: Address, policy: ConnectionPool.AddressPolicy, ) { val state = AddressState(address, taskRunner.newQueue(), policy) val newConnectionsNeeded: Int while (true) { val oldMap = this.addressStates val newMap = oldMap + (address to state) if (addressStatesUpdater.compareAndSet(this, oldMap, newMap)) { val oldPolicyMinimumConcurrentCalls = oldMap[address]?.policy?.minimumConcurrentCalls ?: 0
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 16.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt
.build(), ) val response = call.execute() interruptLater(500) val responseBody = response.body.byteStream() val buffer = ByteArray(1024) assertFailsWith<IOException> { while (responseBody.read(buffer) != -1) { } } responseBody.close() } private fun sleep(delayMillis: Int) { try { Thread.sleep(delayMillis.toLong())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersJvmTest.kt
} @Test fun addDate() { val expected = Date(0L) val headers = Headers.Builder() .add("testDate", expected) .build() assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:00 GMT") assertThat(headers.getDate("testDate")).isEqualTo(Date(0L)) } @Test fun addInstant() { val expected = Instant.ofEpochMilli(0L) val headers = Headers.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.6K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/Gradleception.kt
*/ val dogfoodTimestamp1 = "19800101010101+0000" val dogfoodTimestamp2 = "19800202020202+0000" val buildScanTagForType = buildScanTagParam("Gradleception") val buildScanTagForGroovy4 = buildScanTagParam("Groovy4") val buildScanTags = if (bundleGroovy4) listOf(buildScanTagForType, buildScanTagForGroovy4) else listOf(buildScanTagForType) val extraSysProp = mutableListOf<String>()
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Oct 08 12:58:46 UTC 2024 - 6.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt
import org.junit.jupiter.api.Test // Most tests from URLConnectionTest class JavaNetAuthenticatorTest { private var authenticator = JavaNetAuthenticator() private val fakeDns = FakeDns() private val recordingAuthenticator = RecordingAuthenticator() private val factory = TestValueFactory() .apply { dns = fakeDns } @BeforeEach fun setup() { Authenticator.setDefault(recordingAuthenticator)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampValueSource.kt
interface Parameters : ValueSourceParameters { @get:Optional val buildTimestampFromBuildReceipt: Property<String> @get:Optional val buildTimestampFromGradleProperty: Property<String> val runningOnCi: Property<Boolean> val runningInstallTask: Property<Boolean> val runningDocsTestTask: Property<Boolean> }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 3.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/Hexdump.java
} if( val != 0 ) { val >>>= 4; } size--; } } public static void toHexChars( long val, char dst[], int dstIndex, int size ) { while( size > 0 ) { dst[dstIndex + size - 1] = HEX_DIGITS[(int)( val & 0x000FL )]; if( val != 0 ) { val >>>= 4; }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 5.4K bytes - Viewed (0)