- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 527 for Fun (0.01 sec)
-
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/src/test/java/okhttp3/OpenJSSETest.kt
val clientTestRule = OkHttpClientTestRule() var client = clientTestRule.newClient() private lateinit var server: MockWebServer @BeforeEach fun setUp(server: MockWebServer) { this.server = server platform.assumeOpenJSSE() } @Test fun testTlsv13Works() { enableTls() server.enqueue(MockResponse(body = "abc")) val request = Request(server.url("/"))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 3.7K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt
version = version, enabled = enabled, ) } fun currentVm(ianaSuites: IanaSuites): Client { return systemDefault( name = System.getProperty("java.vm.name"), version = System.getProperty("java.version"), ianaSuites = ianaSuites, ) } fun conscrypt(ianaSuites: IanaSuites): Client { val version = Conscrypt.version() return systemDefault( name = "Conscrypt",
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Apr 02 01:44:15 UTC 2024 - 2.5K 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/src/test/java/okhttp3/FastFallbackTest.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.3K 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/ws/WebSocketWriter.kt
/** Send a ping with the supplied [payload]. */ @Throws(IOException::class) fun writePing(payload: ByteString) { writeControlFrame(OPCODE_CONTROL_PING, payload) } /** Send a pong with the supplied [payload]. */ @Throws(IOException::class) fun writePong(payload: ByteString) { writeControlFrame(OPCODE_CONTROL_PONG, payload) } /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt
}, ) .build() fun run() { val request = Request.Builder() .url("http://publicobject.com/secrets/hellosecret.txt") .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } } fun main() { Authenticate().run()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.9K bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt
System.setOut(PrintStream(capturedOut)) } @AfterEach fun checkForPinning() { assertThat(capturedOut.toString()).isEmpty() } private fun newVirtualThreadPerTaskExecutor(): ExecutorService { return Executors::class.java.getMethod("newVirtualThreadPerTaskExecutor").invoke(null) as ExecutorService } @Test fun testHttpsRequest() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 11:15:46 UTC 2024 - 3.7K bytes - Viewed (0)