- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for ErrorCode (0.11 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/http2/ErrorCode.kt
* limitations under the License. */ package okhttp3.internal.http2 /** http://tools.ietf.org/html/draft-ietf-httpbis-http2-17#section-7 */ enum class ErrorCode constructor(val httpCode: Int) { /** Not an error! */ NO_ERROR(0), PROTOCOL_ERROR(1), INTERNAL_ERROR(2), FLOW_CONTROL_ERROR(3), SETTINGS_TIMEOUT(4), STREAM_CLOSED(5),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/StreamResetException.kt
import java.io.IOException /** Thrown when an HTTP/2 stream is canceled without damage to the socket that carries it. */ class StreamResetException( @JvmField val errorCode: ErrorCode,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 869 bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/BaseTestHandler.kt
inFinished: Boolean, streamId: Int, associatedStreamId: Int, headerBlock: List<Header>, ) { fail("") } override fun rstStream( streamId: Int, errorCode: ErrorCode, ) { fail("") } override fun settings( clearPrevious: Boolean, settings: Settings, ) { fail("") } override fun ackSettings() { fail("") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt
} connection.writeSynResetLater(id, errorCode) } /** Returns true if this stream was closed. */ private fun closeInternal( errorCode: ErrorCode, errorException: IOException?, ): Boolean { lock.assertNotHeld() this.withLock { if (this.errorCode != null) { return false } this.errorCode = errorCode this.errorException = errorException
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 23.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt
if (streamId == 0) throw IOException("TYPE_RST_STREAM streamId == 0") val errorCodeInt = source.readInt() val errorCode = ErrorCode.fromHttp2(errorCodeInt) ?: throw IOException( "TYPE_RST_STREAM unexpected error code: $errorCodeInt", ) handler.rstStream(streamId, errorCode) } @Throws(IOException::class) private fun readSettings( handler: Handler, length: Int,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 19.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
connection.newStream(headerEntries("b", "banana"), false) // Verify the peer received what was expected. assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_HEADERS) assertThat(peer.takeFrame().errorCode).isEqualTo(ErrorCode.PROTOCOL_ERROR) } @Test fun pushPromiseStreamsAutomaticallyCancel() { // Write the mocking script. peer.sendFrame().settings(Settings()) peer.acceptFrame() // ACK
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 75.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/SQLRuntimeExceptionTest.java
System.out.println(message); assertContains(message, "ErrorCode=7650"); assertContains(message, "SQLState=fooState"); assertContains(message, "some reason"); assertContains(message, "ErrorCode=7660"); assertContains(message, "SQLState=barState"); assertContains(message, "hoge reason"); assertContains(message, "ErrorCode=7670"); assertContains(message, "SQLState=bazState");
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt
frame.writeInt(ErrorCode.PROTOCOL_ERROR.httpCode) reader.nextFrame( requireSettings = false, object : BaseTestHandler() { override fun rstStream( streamId: Int, errorCode: ErrorCode, ) { assertThat(streamId).isEqualTo(expectedStreamId) assertThat(errorCode).isEqualTo(ErrorCode.PROTOCOL_ERROR) } }, )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 28.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
mockWebServer: MockWebServer, ) { setUp(protocol, mockWebServer) noRecoveryFromErrorWithRetryDisabled(ErrorCode.CANCEL) } private fun noRecoveryFromErrorWithRetryDisabled(errorCode: ErrorCode?) { server.enqueue( MockResponse(socketPolicy = ResetStreamAtStart(errorCode!!.httpCode)), ) server.enqueue(MockResponse(body = "abc")) client = client.newBuilder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHook.java
} final String errorCode = UUID.randomUUID().toString(); if (logger.isDebugEnabled()) { logger.debug("[{}] {}", errorCode, stacktraceString.get().replace("\n", "\\n")); } else { logger.warn("[{}] {}", errorCode, cause.getMessage()); } return "error_code:" + errorCode; }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 5.8K bytes - Viewed (0)