- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for ProtocolException (0.07 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt
} } else -> { if (reservedFlag1) throw ProtocolException("Unexpected rsv1 flag") } } val reservedFlag2 = b0 and B0_FLAG_RSV2 != 0 if (reservedFlag2) throw ProtocolException("Unexpected rsv2 flag") val reservedFlag3 = b0 and B0_FLAG_RSV3 != 0 if (reservedFlag3) throw ProtocolException("Unexpected rsv3 flag") val b1 = source.readByte() and 0xff
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 22:04:11 UTC 2025 - 9.9K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
when { length0 == 0b1000_0000 -> { throw ProtocolException("indefinite length not permitted for DER") } (length0 and 0b1000_0000) == 0b1000_0000 -> { // Length specified over multiple bytes. val lengthBytes = length0 and 0b0111_1111 if (lengthBytes > 8) { throw ProtocolException("length encoded with more than 8 bytes is not supported") }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.5K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
val bytes = "170d3139313231362333303231305a".decodeHex() assertFailsWith<ProtocolException> { Adapters.UTC_TIME.fromDer(bytes) }.also { expected -> assertThat(expected).hasMessage("Failed to parse UTCTime 191216#30210Z") } } @Test fun `cannot decode generalized time with offset`() { assertFailsWith<ProtocolException> {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 31.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt
assertFailsWith<ProtocolException> { clientReader.processNextFrame() }.also { expected -> assertThat(expected.message) .isEqualTo("Control frames must be final.") } } @Test fun reservedFlag1IsUnsupportedWithNoCompression() { data.write("ca00".decodeHex()) // Empty pong, flag 1 set. assertFailsWith<ProtocolException> { clientReader.processNextFrame()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 14.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
import assertk.assertions.isNotNull import assertk.assertions.isNull import java.io.EOFException import java.io.IOException import java.io.InterruptedIOException import java.net.HttpURLConnection import java.net.ProtocolException import java.net.SocketTimeoutException import java.time.Duration import java.util.Arrays import java.util.Collections import java.util.Random import java.util.concurrent.CountDownLatch
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 35.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
throw ProtocolException( "expected chunk size and optional extensions" + " but was \"$bytesRemainingInChunk$extensions\"", ) } } catch (e: NumberFormatException) { throw ProtocolException(e.message) } if (bytesRemainingInChunk == 0L) { hasMoreChunks = false
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 17.5K bytes - Viewed (7) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.tls.internal.der import java.math.BigInteger import java.net.ProtocolException import okio.ByteString /** * ASN.1 adapters adapted from the specifications in [RFC 5280][rfc_5280]. * * [rfc_5280]: https://tools.ietf.org/html/rfc5280 */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 13.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
import java.net.HttpURLConnection.HTTP_PROXY_AUTH import java.net.HttpURLConnection.HTTP_SEE_OTHER import java.net.HttpURLConnection.HTTP_UNAUTHORIZED import java.net.HttpURLConnection.HTTP_UNAVAILABLE import java.net.ProtocolException import java.net.Proxy import java.net.SocketTimeoutException import java.security.cert.CertificateException import javax.net.ssl.SSLHandshakeException import javax.net.ssl.SSLPeerUnverifiedException
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 12.4K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
val peekedHeader = reader.peekHeader() ?: throw ProtocolException("expected a value at $reader") val choice = choices.firstOrNull { it.matches(peekedHeader) } ?: throw ProtocolException( "expected a matching choice but was $peekedHeader at $reader", )
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt
import assertk.assertions.isFalse import assertk.assertions.isGreaterThan import assertk.assertions.isLessThan import assertk.assertions.isTrue import java.io.EOFException import java.io.IOException import java.net.ProtocolException import java.net.SocketTimeoutException import java.util.Random import kotlin.test.assertFailsWith import okhttp3.FailingCall import okhttp3.Headers import okhttp3.Headers.Companion.headersOf
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.7K bytes - Viewed (0)