- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 237 for OkHttp (0.03 seconds)
-
samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt
import org.junit.jupiter.api.extension.RegisterExtension /** * OkHttp. * * https://square.github.io/okhttp/ */ class OkHttpClientTest { @JvmField @RegisterExtension val platform = PlatformRule() @StartStop private val server = MockWebServer() @Test fun get() { server.enqueue(MockResponse(body = "hello, OkHttp")) val client = OkHttpClient() val request = RequestCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 1.9K bytes - Click Count (0) -
okhttp/build.gradle.kts
// will be suffixed '$okhttp' in deployable artifacts. This isn't intended to be a published API, // but it's easy enough for us to keep it working. https://github.com/square/okhttp/issues/8826 tasks.withType<KotlinCompile> { compilerOptions { freeCompilerArgs = listOf("-module-name=okhttp") } } apply(plugin = "io.github.usefulness.maven-sympathy")
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 12.3K bytes - Click Count (0) -
.github/renovate.json
"group:monorepos", "group:recommended", ":dependencyDashboard" ], "semanticCommits": "disabled", "labels": [ "renovate" ], "ignoreDeps": [ "com.squareup.okhttp3:okhttp", "com.squareup.okhttp3:okhttp-tls", "com.squareup.okhttp3:mockwebserver" ], "packageRules": [ { "groupName": "bnd", "matchPackageNames": [ "/biz.*/" ] }, {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Oct 11 08:35:05 GMT 2025 - 1.1K bytes - Click Count (0) -
module-tests/build.gradle.kts
id("application") id("com.github.iherasymenko.jlink") version "0.7" id("org.gradlex.extra-java-module-info") version "1.13.1" } dependencies { implementation(projects.okhttp) implementation(projects.loggingInterceptor) testImplementation(projects.okhttp) testImplementation(projects.loggingInterceptor) testImplementation(projects.mockwebserver3) testImplementation(projects.mockwebserver3Junit5)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Sep 21 06:45:42 GMT 2025 - 1.6K bytes - Click Count (0) -
container-tests/build.gradle.kts
plugins { kotlin("jvm") } val platform = System.getProperty("okhttp.platform", "jdk9") val testJavaVersion = System.getProperty("test.java.version", "21").toInt() tasks.withType<Test> { useJUnitPlatform() onlyIf("By default not in CI") { System.getenv("CI") == null || (project.hasProperty("containerTests") && project.property("containerTests").toString().toBoolean()) } jvmArgs( "-Dokhttp.platform=$platform",Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Mar 17 14:46:34 GMT 2024 - 1.1K bytes - Click Count (1) -
okhttp-coroutines/README.md
OkHttp Coroutines ================= Support for Kotlin clients using coroutines. ```kotlin val call = client.newCall(request) call.executeAsync().use { response -> withContext(Dispatchers.IO) { println(response.body?.string()) } } ``` This is implemented using `suspendCancellableCoroutine` but uses the standard Dispatcher in OkHttp. This means that by default Kotlin's Dispatchers are not used.
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Nov 09 15:47:27 GMT 2023 - 609 bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CipherSuiteTest.kt
* * Prior to OkHttp 3.3.1 we accepted either form and consider them equivalent. And since OkHttp * 3.7.0 this is also true. But OkHttp 3.3.1 through 3.6.0 treated these as different. */ @Test fun forJavaName_fromLegacyEnumName() { // These would have been considered equal in OkHttp 3.3.1, but now aren't. assertThat(forJavaName("SSL_RSA_EXPORT_WITH_RC4_40_MD5"))
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 8.2K bytes - Click Count (0) -
android-test-app/build.gradle.kts
@file:Suppress("UnstableApiUsage") plugins { id("com.android.application") id("kotlin-android") } android { compileSdk = 36 namespace = "okhttp.android.testapp" testBuildType = "release" defaultConfig { minSdk = 21 targetSdk = 36 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } compileOptions { targetCompatibility(JavaVersion.VERSION_11)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jul 19 12:35:48 GMT 2025 - 1.2K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt
class AccessHeaders { private val client = OkHttpClient() fun run() { val request = Request .Builder() .url("https://api.github.com/repos/square/okhttp/issues") .header("User-Agent", "OkHttp Headers.java") .addHeader("Accept", "application/json; q=0.5") .addHeader("Accept", "application/vnd.github.v3+json") .build()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.4K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/publicsuffix/AssetPublicSuffixList.kt
"Android tests should run with Robolectric " + "and call OkHttp.initialize before test", ) } else { throw IOException( "Platform applicationContext not initialized. " + "Startup Initializer possibly disabled, " + "call OkHttp.initialize before test.", ) } } return assets.open(path).source() }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jul 28 07:33:49 GMT 2025 - 1.7K bytes - Click Count (0)