- Sort Score
- Num 10 results
- Language All
Results 171 - 180 of 378 for comparison (0.06 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/kt/PostForm.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.recipes.kt import java.io.IOException import okhttp3.FormBody import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.OkHttpClient import okhttp3.Request class PostForm { private val client = OkHttpClient() fun run() { val formBody = FormBody .Builder()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheControlJvmTest.kt
import assertk.assertions.isFalse import assertk.assertions.isSameAs import assertk.assertions.isTrue import java.util.concurrent.TimeUnit import kotlin.test.assertFailsWith import okhttp3.CacheControl.Companion.parse import okhttp3.Headers.Companion.headersOf import org.junit.jupiter.api.Test class CacheControlJvmTest { @Test @Throws(Exception::class) fun completeBuilder() { val cacheControl = CacheControlCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 7.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformToAsciiData.kt
*/ @Serializable class WebPlatformToAsciiData { var input: String? = null var output: String? = null var comment: String? = null override fun toString() = "input=$input output=$output" companion object { fun load(): List<WebPlatformToAsciiData> { val path = okHttpRoot / "okhttp/src/jvmTest/resources/web-platform-test-toascii.json" return SYSTEM_FILE_SYSTEM.read(path) {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.4K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/SmokeIdeTests.kt
buildScanTagParam("SmokeIdeTests"), "-PflakyTests=$flakyTestStrategy", ).joinToString(" "), ) }) { companion object { fun buildTypeId(model: CIBuildModel) = "${model.projectId}_SmokeIdeTests" }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Oct 09 05:26:45 GMT 2025 - 1.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CookieJar.kt
* * Simple implementations will return the accepted cookies that have not yet expired and that * [match][Cookie.matches] [url]. */ fun loadForRequest(url: HttpUrl): List<Cookie> companion object { /** A cookie jar that never accepts any cookies. */ @JvmField val NO_COOKIES: CookieJar = NoCookies() private class NoCookies : CookieJar { override fun saveFromResponse(
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.4K bytes - Click Count (0) -
mockwebserver-junit5/src/test/java/mockwebserver3/junit5/StartStopTest.kt
assertThat(serverC.started).isFalse() assertThat(serverD.started).isTrue() assertThat(serverE.started).isTrue() assertThat(serverF.started).isFalse() } private companion object { val testInstances = CopyOnWriteArrayList<StartStopTest>() private val dispatcherD = ClosableDispatcher() @StartStop @JvmStatic val serverD = MockWebServer().apply {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 11:13:17 GMT 2025 - 3.3K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformToAsciiTest.kt
* limitations under the License. */ package okhttp3 import assertk.assertThat import assertk.assertions.isEqualTo import kotlin.test.Test import okhttp3.HttpUrl.Companion.toHttpUrlOrNull /** Runs the web platform ToAscii tests. */ class WebPlatformToAsciiTest { @Suppress("ktlint:standard:max-line-length") val knownFailures = setOf( // OkHttp rejects empty labels.Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/TlsVersion.kt
@Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "javaName"), level = DeprecationLevel.ERROR, ) fun javaName(): String = javaName companion object { @JvmStatic fun forJavaName(javaName: String): TlsVersion = when (javaName) { "TLSv1.3" -> TLS_1_3 "TLSv1.2" -> TLS_1_2 "TLSv1.1" -> TLS_1_1 "TLSv1" -> TLS_1_0Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.5K bytes - Click Count (0) -
okhttp/src/jvmMain/kotlin/okhttp3/internal/graal/GraalSvm.kt
@TargetClass(Jdk8WithJettyBootPlatform::class) @Delete class TargetJdk8WithJettyBootPlatform @TargetClass(OpenJSSEPlatform::class) @Delete class TargetOpenJSSEPlatform @TargetClass(Platform.Companion::class) class TargetPlatform { @Substitute fun findPlatform(): Platform = Jdk9Platform.buildIfSupported()!!Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.5K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/CompileAll.kt
) setArtifactRules( """$artifactRules platforms/core-runtime/base-services/build/generated-resources/build-receipt/org/gradle/build-receipt.properties """, ) }) { companion object { fun buildTypeId(model: CIBuildModel) = buildTypeId(model.projectId) fun buildTypeId(projectId: String) = "${projectId}_CompileAllBuild" }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Dec 22 07:15:16 GMT 2025 - 1.4K bytes - Click Count (0)