- Sort Score
- Result 10 results
- Languages All
Results 351 - 360 of 567 for fun (0.01 sec)
-
samples/guide/src/main/java/okhttp3/recipes/kt/ParseResponseWithMoshi.kt
import okhttp3.Request class ParseResponseWithMoshi { private val client = OkHttpClient() private val moshi = Moshi.Builder().build() private val gistJsonAdapter = moshi.adapter(Gist::class.java) fun run() { val request = Request .Builder() .url("https://api.github.com/gists/c2a7c39532239ff261be") .build() client.newCall(request).execute().use { response ->Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
proxySelector = proxySelector, ) fun newRoute( address: Address = newAddress(), proxy: Proxy = this.proxy, socketAddress: InetSocketAddress = InetSocketAddress.createUnresolved(uriHost, uriPort), ): Route = Route( address = address, proxy = proxy, socketAddress = socketAddress, ) fun newChain(call: RealCall): RealInterceptorChain =Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 7.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Authenticator.kt
*/ @Throws(IOException::class) fun authenticate( route: Route?, response: Response, ): Request? companion object { /** An authenticator that knows no credentials and makes no attempt to authenticate. */ @JvmField val NONE: Authenticator = AuthenticatorNone() private class AuthenticatorNone : Authenticator { override fun authenticate( route: Route?,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.5K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/Dispatcher.kt
* request bodies. */ public open fun peek(): MockResponse = MockResponse() /** * Release any resources held by this dispatcher. Any requests that are currently being dispatched * should return immediately. Responses returned after shutdown will not be transmitted: their * socket connections have already been closed. */ public open override fun close() {}
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 1.6K bytes - Viewed (0) -
buildSrc/src/main/kotlin/AlpnVersions.kt
* See the License for the specific language governing permissions and * limitations under the License. */ // https://www.eclipse.org/jetty/documentation/current/alpn-chapter.html#alpn-versions private fun alpnBootVersionForPatchVersion(patchVersion: Int): String? = when (patchVersion) { in 0..24 -> "8.1.0.v20141016" in 25..30 -> "8.1.2.v20141202" in 31..50 -> "8.1.3.v20150130" in 51..59 -> "8.1.4.v20150727"
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/TrustRootIndex.kt
* limitations under the License. */ package okhttp3.internal.tls import java.security.cert.X509Certificate fun interface TrustRootIndex { /** Returns the trusted CA certificate that signed [cert]. */ fun findByIssuerAndSignature(cert: X509Certificate): X509Certificate?Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 843 bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
var clientTestRule = OkHttpClientTestRule() @StartStop private val server = MockWebServer() @BeforeEach fun setup() { platform.assumeNotBouncyCastle() } /** * The pinner should pull the root certificate from the trust manager. */ @Test fun pinRootNotPresentInChain() { // Fails on 11.0.1 https://github.com/square/okhttp/issues/4703 val rootCa = HeldCertificate
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 24.3K bytes - Viewed (2) -
mockwebserver-junit4/api/mockwebserver3-junit4.api
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jun 16 22:36:18 UTC 2025 - 183 bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/Punycode.kt
k += BASE } return k + (((BASE - TMIN + 1) * delta) / (delta + SKEW)) } private fun String.requiresEncode( pos: Int, limit: Int, ): Boolean { for (i in pos until limit) { if (this[i].code >= INITIAL_N) return true } return false } private fun String.codePoints( pos: Int, limit: Int, ): List<Int> { val result = mutableListOf<Int>()Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 8.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/MessageDeflater.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2.1K bytes - Viewed (0)