- Sort Score
- Result 10 results
- Languages All
Results 281 - 290 of 657 for fun (0.02 sec)
-
okhttp/src/test/java/okhttp3/internal/http/HttpDateTest.kt
private lateinit var originalDefault: TimeZone @BeforeEach fun setUp() { originalDefault = TimeZone.getDefault() // The default timezone should affect none of these tests: HTTP specified GMT, so we set it to // something else. TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")) } @AfterEach @Throws(Exception::class) fun tearDown() { TimeZone.setDefault(originalDefault) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/WebPlatformUrlTestData.kt
var scheme = "" var username = "" var password: String? = null var host = "" var port = "" var path = "" var query = "" var fragment = "" fun expectParseFailure() = scheme.isEmpty() private operator fun set( name: String, value: String, ) { when (name) { "s" -> scheme = value "u" -> username = value "pass" -> password = value
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersKotlinTest.kt
import okhttp3.Headers.Companion.headersOf import org.junit.jupiter.api.Test class HeadersKotlinTest { @Test fun getOperator() { val headers = headersOf("a", "b", "c", "d") assertThat(headers["a"]).isEqualTo("b") assertThat(headers["c"]).isEqualTo("d") assertThat(headers["e"]).isNull() } @Test fun iteratorOperator() { val headers = headersOf("a", "b", "c", "d")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Dec 21 01:54:49 UTC 2023 - 2K bytes - Viewed (0) -
okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt
object EventSources { @Deprecated( message = "required for binary-compatibility!", level = DeprecationLevel.HIDDEN, ) @JvmStatic fun createFactory(client: OkHttpClient) = createFactory(client as Call.Factory) @JvmStatic fun createFactory(callFactory: Call.Factory): EventSource.Factory { return EventSource.Factory { request, listener -> val actualRequest =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:18:15 UTC 2024 - 1.6K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt
@Throws(SignatureException::class) fun checkSignature(issuer: PublicKey): Boolean { val signedData = CertificateAdapters.tbsCertificate.toDer(tbsCertificate) return Signature.getInstance(tbsCertificate.signatureAlgorithmName).run { initVerify(issuer) update(signedData.toByteArray()) verify(signatureValue.byteString.toByteArray()) } } fun toX509Certificate(): X509Certificate {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt
} } override fun equals(other: Any?): Boolean = other is AndroidCertificateChainCleaner && other.trustManager === this.trustManager override fun hashCode(): Int = System.identityHashCode(trustManager) companion object { @SuppressSignatureCheck fun buildIfSupported(trustManager: X509TrustManager): AndroidCertificateChainCleaner? {
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/basics/src/main/kotlin/gradlebuild/basics/tasks/ClasspathManifest.kt
@get:OutputFile abstract val manifestFile: RegularFileProperty @TaskAction fun generate() { ReproduciblePropertiesWriter.store(createProperties(), manifestFile.get().asFile) } private fun createProperties() = Properties().also { properties -> properties["runtime"] = runtime.get().joinToString(",")
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Mar 28 20:26:58 UTC 2024 - 2.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
return true } private fun requestIsOneShot( e: IOException, userRequest: Request, ): Boolean { val requestBody = userRequest.body return (requestBody != null && requestBody.isOneShot()) || e is FileNotFoundException } private fun isRecoverable( e: IOException, requestSendStarted: Boolean, ): Boolean {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:24:48 UTC 2024 - 12.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt
* response cache won't be used. */ private fun hasConditions(request: Request): Boolean = request.header("If-Modified-Since") != null || request.header("If-None-Match") != null } companion object { /** Returns true if [response] can be stored to later serve another request. */ fun isCacheable( response: Response, request: Request, ): Boolean {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:24:48 UTC 2024 - 12K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/CallConnectionUser.kt
} override fun doExtensiveHealthChecks(): Boolean { return chain.request.method != "GET" } override fun isCanceled(): Boolean { return call.isCanceled() } override fun candidateConnection(): RealConnection? { return call.connection } override fun proxySelectStart(url: HttpUrl) { eventListener.proxySelectStart(call, url) } override fun proxySelectEnd(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Mar 06 17:33:38 UTC 2024 - 3.6K bytes - Viewed (0)