- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for NO_ERROR (0.04 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/ErrorCode.kt
*/ 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), FRAME_SIZE_ERROR(6), REFUSED_STREAM(7), CANCEL(8),
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt
* Closes this connection. This cancels all open streams and unanswered pings. It closes the * underlying input and output streams and shuts down internal task queues. */ override fun close() { close(ErrorCode.NO_ERROR, ErrorCode.CANCEL, null) } internal fun close( connectionCode: ErrorCode, streamCode: ErrorCode, cause: IOException?, ) { assertLockNotHeld() ignoreIoExceptions {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 31.9K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
} else { socket.close() } } ShutdownConnection -> { if (stream != null) { stream.connection.shutdown(ErrorCode.NO_ERROR) } else { socket.close() } } is CloseSocket -> { if (effect.shutdownInput) socket.shutdownInput() if (effect.shutdownOutput) socket.shutdownOutput()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 40.3K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
* close the socket after the response body or trailers. */ public fun doNotReadRequestBody(): Builder = apply { doNotReadRequestBody = true onResponseEnd = CloseStream(ErrorCode.NO_ERROR.httpCode) } /** Trigger [socketEffect] while reading the request body. */ public fun onRequestBody(socketEffect: SocketEffect?): Builder = apply { this.onRequestBody = socketEffectCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 17.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
peer.acceptFrame() // PING peer.sendFrame().headers(false, 3, headerEntries("a", "android")) peer.sendFrame().data(true, 3, Buffer().writeUtf8("robot"), 5) peer.sendFrame().rstStream(3, ErrorCode.NO_ERROR) peer.sendFrame().ping(true, Http2Connection.AWAIT_PING, 0) // PONG peer.play() // Play it back. val connection = connect(peer) val stream = connection.newStream(headerEntries(), false)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 75.5K bytes - Click Count (0)