- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for HTTP_1_0 (0.13 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Protocol.kt
fun get(protocol: String): Protocol { // Unroll the loop over values() to save an allocation. @Suppress("DEPRECATION") return when (protocol) { HTTP_1_0.protocol -> { HTTP_1_0 } HTTP_1_1.protocol -> { HTTP_1_1 } H2_PRIOR_KNOWLEDGE.protocol -> { H2_PRIOR_KNOWLEDGE }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 4.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/StatusLine.kt
protocol = when (httpMinorVersion) { 0 -> Protocol.HTTP_1_0 1 -> Protocol.HTTP_1_1 else -> throw ProtocolException("Unexpected status line: $statusLine") } } else if (statusLine.startsWith("ICY ")) { // Shoutcast uses ICY instead of "HTTP/1.0". protocol = Protocol.HTTP_1_0 codeStart = 4 } else if (statusLine.startsWith("SOURCETABLE ")) {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ProtocolTest.kt
import org.junit.jupiter.api.Assertions.assertThrows import org.junit.jupiter.api.Test class ProtocolTest { @Test fun testGetKnown() { assertThat(get("http/1.0")).isEqualTo(Protocol.HTTP_1_0) assertThat(get("http/1.1")).isEqualTo(Protocol.HTTP_1_1) assertThat(get("spdy/3.1")).isEqualTo(Protocol.SPDY_3) assertThat(get("h2")).isEqualTo(Protocol.HTTP_2)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/StatusLineTest.kt
// https://github.com/square/okhttp/issues/386 @Test fun shoutcast() { val statusLine = parse("ICY 200 OK") assertThat(statusLine.message).isEqualTo("OK") assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_0) assertThat(statusLine.code).isEqualTo(200) } @Test fun missingProtocol() { assertInvalid("") assertInvalid(" ") assertInvalid("200 OK") assertInvalid(" 200 OK") }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
} @Test fun setProtocolsRejectsHttp10() { val builder = OkHttpClient.Builder() assertFailsWith<IllegalArgumentException> { builder.protocols(listOf(Protocol.HTTP_1_0, Protocol.HTTP_1_1)) } } @Test fun certificatePinnerEquality() { val clientA = clientTestRule.newClient() val clientB = clientTestRule.newClient()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 13.4K bytes - Click Count (1) -
okhttp/api/jvm/okhttp.api
} public final class okhttp3/Protocol : java/lang/Enum { public static final field Companion Lokhttp3/Protocol$Companion; public static final field H2_PRIOR_KNOWLEDGE Lokhttp3/Protocol; public static final field HTTP_1_0 Lokhttp3/Protocol; public static final field HTTP_1_1 Lokhttp3/Protocol; public static final field HTTP_2 Lokhttp3/Protocol; public static final field HTTP_3 Lokhttp3/Protocol;Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 72.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Connection.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 4.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt
this.platform = platform PublicSuffixDatabase.resetForTests() } fun alpnProtocolNames(protocols: List<Protocol>) = protocols.filter { it != Protocol.HTTP_1_0 }.map { it.toString() } val isAndroid: Boolean get() = PlatformRegistry.isAndroid /** Attempt to match the host runtime to a capable Platform implementation. */Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 8.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt
* [priorResponse] objects, which have its own [priorResponse]. */ @get:JvmName("request") val request: Request, /** Returns the HTTP protocol, such as [Protocol.HTTP_1_1] or [Protocol.HTTP_1_0]. */ @get:JvmName("protocol") val protocol: Protocol, /** Returns the HTTP status message. */ @get:JvmName("message") val message: String, /** Returns the HTTP status code. */ @get:JvmName("code") val code: Int,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 28 14:39:28 GMT 2025 - 18.1K bytes - Click Count (0) -
okhttp/api/android/okhttp.api
} public final class okhttp3/Protocol : java/lang/Enum { public static final field Companion Lokhttp3/Protocol$Companion; public static final field H2_PRIOR_KNOWLEDGE Lokhttp3/Protocol; public static final field HTTP_1_0 Lokhttp3/Protocol; public static final field HTTP_1_1 Lokhttp3/Protocol; public static final field HTTP_2 Lokhttp3/Protocol; public static final field HTTP_3 Lokhttp3/Protocol;Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 72.3K bytes - Click Count (0)