- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 657 for fun (0.1 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/internal/http/RecordingProxySelector.kt
private val failures = mutableListOf<String>() override fun select(uri: URI): List<Proxy> { requestedUris.add(uri) return proxies } fun assertRequests(vararg expectedUris: URI?) { assertThat(requestedUris).containsExactly(*expectedUris) requestedUris.clear() } override fun connectFailed( uri: URI, sa: SocketAddress, ioe: IOException, ) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
suspend fun import() { check(fileSystem.metadata(resources).isDirectory) check(fileSystem.metadata(testResources).isDirectory) updateLocalFile() val importResults = readImportResults() writeOutputFile(importResults) } private suspend fun updateLocalFile() = withContext(Dispatchers.IO) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:24:38 UTC 2024 - 6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RouteFailureTest.kt
.assertSuccessful() .assertCode(200) } private fun enableProtocol(protocol: Protocol) { enableTls() client = client.newBuilder() .protocols(listOf(protocol, Protocol.HTTP_1_1)) .build() server1.protocols = client.protocols server2.protocols = client.protocols } private fun enableTls() { client = client.newBuilder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue May 14 17:48:07 UTC 2024 - 11.9K 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) -
okhttp/src/test/java/okhttp3/LoomTest.kt
private lateinit var client: OkHttpClient @BeforeEach fun setUp(server: MockWebServer) { platform.assumeLoom() this.server = server client = clientTestRule.newClientBuilder() .dispatcher(Dispatcher(newVirtualThreadPerTaskExecutor())) .build() } private fun newVirtualThreadPerTaskExecutor(): ExecutorService {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
} @Test fun testNoUncompress() { val response = response("https://httpbin.org/brotli", "XXXX".encodeUtf8()) val same = uncompress(response) val responseString = same.body.string() assertThat(responseString).isEqualTo("XXXX") } @Test fun testFailsUncompress() { val response =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K 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) -
.teamcity/src/main/kotlin/common/performance-test-extensions.kt
import jetbrains.buildServer.configs.kotlin.BuildStep import jetbrains.buildServer.configs.kotlin.BuildSteps import jetbrains.buildServer.configs.kotlin.BuildType import jetbrains.buildServer.configs.kotlin.buildSteps.script fun BuildType.applyPerformanceTestSettings(os: Os = Os.LINUX, arch: Arch = Arch.AMD64, timeout: Int = 30) { applyDefaultSettings(os = os, arch = arch, timeout = timeout) artifactRules = """
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Jun 03 03:39:03 UTC 2024 - 3.8K 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) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/SubprojectsInfo.kt
val subprojectsJson = project.layout.projectDirectory.file(".teamcity/subprojects.json") protected fun generateSubprojectsJson(): String { val subprojects = generateSubprojects() val gson = GsonBuilder().setPrettyPrinting().create() return gson.toJson(subprojects) + '\n' } private fun generateSubprojectsDirectories(): List<File> {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.9K bytes - Viewed (0)