- Sort Score
- Result 10 results
- Languages All
Results 1381 - 1390 of 1,950 for func (0.05 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
} } } override fun put(element: T) { taskRunner.lock.withLock { delegate.put(element) editCount++ } } override fun iterator() = error("unsupported") override fun offer(e: T) = error("unsupported") override fun peek(): T = error("unsupported") override fun offer( element: T, timeout: Long,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 29 00:33:04 UTC 2024 - 12.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersTest.kt
} } @Test fun ofThrowsOnEmptyName() { assertFailsWith<IllegalArgumentException> { headersOf("", "OkHttp") } } @Test fun ofAcceptsEmptyValue() { val headers = headersOf("User-Agent", "") assertThat(headers.value(0)).isEqualTo("") } @Test fun ofMakesDefensiveCopy() { val namesAndValues = arrayOf( "User-Agent", "OkHttp", )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinModifiersChangeTest.kt
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 2.6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt
val isBinaryCompatible = checkFailure == null fun assertEmptyReport() { assertHasNoError() assertHasNoWarning() assertHasNoInformation() } fun assertHasNoError() { assertTrue("Has no error (${richReport.errors})", richReport.errors.isEmpty()) } fun assertHasNoWarning() {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 16.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketExtensionsTest.kt
import org.junit.jupiter.api.Test class WebSocketExtensionsTest { @Test fun emptyHeader() { assertThat(parse("")).isEqualTo(WebSocketExtensions()) } @Test fun noExtensionHeader() { assertThat(WebSocketExtensions.parse(headersOf())) .isEqualTo(WebSocketExtensions()) } @Test fun emptyExtension() { assertThat(parse(", permessage-deflate"))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Request.kt
* cache-control headers. */ open fun cacheControl(cacheControl: CacheControl): Builder = commonCacheControl(cacheControl) open fun get(): Builder = commonGet() open fun head(): Builder = commonHead() open fun post(body: RequestBody): Builder = commonPost(body) @JvmOverloads open fun delete(body: RequestBody? = commonEmptyRequestBody): Builder = commonDelete(body)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:17:44 UTC 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CertificatePinnerTest.kt
import org.junit.jupiter.api.Test class CertificatePinnerTest { @Test fun malformedPin() { val builder = CertificatePinner.Builder() assertFailsWith<IllegalArgumentException> { builder.add("example.com", "md5/DmxUShsZuNiqPQsX2Oi9uv2sCnw=") } } @Test fun malformedBase64() { val builder = CertificatePinner.Builder() assertFailsWith<IllegalArgumentException> {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
newUnknownLengthSource() } } } } override fun trailers(): Headers { check(state == STATE_CLOSED) { "too early; can't read the trailers yet" } return trailers ?: EMPTY_HEADERS } override fun flushRequest() { sink.flush() } override fun finishRequest() { sink.flush() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
} @Test fun requestMethodPutIsNotCachedEvenWithOverride() { testRequestMethod("PUT", false, withOverride = true) } @Test fun requestMethodDeleteIsNotCached() { testRequestMethod("DELETE", false) } @Test fun requestMethodTraceIsNotCached() { testRequestMethod("TRACE", false) } private fun testRequestMethod( requestMethod: String,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt
trackFailure(e) throw e } } @Throws(IOException::class) fun trailers(): Headers = codec.trailers() @Throws(SocketException::class) fun newWebSocketStreams(): RealWebSocket.Streams { call.timeoutEarlyExit() return (codec.carrier as RealConnection).newWebSocketStreams(this) } fun webSocketUpgradeFailed() { bodyComplete(-1L, responseDone = true, requestDone = true, e = null)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.2K bytes - Viewed (0)