- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for return (0.17 sec)
-
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
import okhttp3.testing.PlatformVersion @Suppress("HttpUrlsUsage") // Don't warn if we should be using https://. open class HttpUrlTest { protected open fun parse(url: String): HttpUrl { return url.toHttpUrl() } protected open fun assertInvalid( string: String, exceptionMessage: String?, ) { try { val result = string.toHttpUrl() if (exceptionMessage != null) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 67.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
if (queryNamesAndValues == null) return emptySet() val result = LinkedHashSet<String>() for (i in 0 until queryNamesAndValues.size step 2) { result.add(queryNamesAndValues[i]!!) } return result.readOnly() } /** * Returns all values for the query parameter `name` ordered by their appearance in this * URL. For example this returns `["banana"]` for `queryParameterValue("b")` on
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 63.5K bytes - Viewed (1) -
docs/changelogs/changelog_3x.md
* Fix: Change the declaration of `OkHttpClient.cache()` to return a `@Nullable Cache`. The return value has always been nullable but it wasn't declared properly. * Fix: Reverse suppression of connect exceptions. When both a call and its retry fail, we now throw the initial exception which is most likely to be actionable. * Fix: Retain interrupted state when throwing `InterruptedIOException`. A single interrupt should
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 14:55:54 GMT 2022 - 50.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/EventListenerTest.kt
return object : BaseMatcher<Long?>() { override fun describeTo(description: Description?) { description!!.appendText("> $value") } override fun matches(o: Any?): Boolean { return (o as Long?)!! > value } } } private fun matchesProtocol(protocol: Protocol?): Matcher<Response?> { return object : BaseMatcher<Response?>() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 56.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
if (url.isHttps) { useSslSocketFactory = sslSocketFactory useHostnameVerifier = hostnameVerifier useCertificatePinner = certificatePinner } return Address( uriHost = url.host, uriPort = url.port, dns = dns, socketFactory = socketFactory, sslSocketFactory = useSslSocketFactory, hostnameVerifier = useHostnameVerifier,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:21:33 GMT 2024 - 52K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
result.add(line) } } return result } private fun getCleanFile( key: String, index: Int, ) = cacheDir / "$key.$index" private fun getDirtyFile( key: String, index: Int, ) = cacheDir / "$key.$index.tmp" private fun readFile(file: Path): String { return filesystem.read(file) { readUtf8() } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
assertThat(ackFrame.streamId).isEqualTo(0) assertThat(ackFrame.ack).isTrue() return connection } private class RecordingPushObserver : PushObserver { val events = mutableListOf<Any>() @Synchronized fun takeEvent(): Any { while (events.isEmpty()) { wait() } return events.removeAt(0) } @Synchronized override fun onRequest(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 75.4K bytes - Viewed (0)