Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NO_ERROR (0.21 sec)

  1. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

      }
    
      private fun serverTruncatesRequestOnLongPost(https: Boolean) {
        server.enqueue(
          MockResponse(
            body = "abc",
            socketPolicy = DoNotReadRequestBody(ErrorCode.NO_ERROR.httpCode),
          ),
        )
    
        val call =
          client.newCall(
            Request(
              url = server.url("/"),
              body = SlowRequestBody,
            ),
          )
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  2. okhttp/src/main/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),
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/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)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

                "and responded: $response protocol is $protocol",
            )
          }
    
          when (socketPolicy) {
            DisconnectAtEnd -> {
              stream.connection.shutdown(ErrorCode.NO_ERROR)
            }
            is DoNotReadRequestBody -> {
              stream.close(ErrorCode.fromHttp2(socketPolicy.http2ErrorCode)!!, null)
            }
            else -> {
            }
          }
        }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  5. okhttp/src/main/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?,
      ) {
        this.assertThreadDoesntHoldLock()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  6. api/go1.txt

    pkg syscall (windows-386), const CERT_TRUST_IS_REVOKED ideal-int
    pkg syscall (windows-386), const CERT_TRUST_IS_UNTRUSTED_ROOT ideal-int
    pkg syscall (windows-386), const CERT_TRUST_NO_ERROR ideal-int
    pkg syscall (windows-386), const CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY ideal-int
    pkg syscall (windows-386), const CERT_TRUST_REVOCATION_STATUS_UNKNOWN ideal-int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  7. api/go1.1.txt

    pkg syscall (windows-386), const CERT_TRUST_IS_REVOKED = 4
    pkg syscall (windows-386), const CERT_TRUST_IS_UNTRUSTED_ROOT = 32
    pkg syscall (windows-386), const CERT_TRUST_NO_ERROR = 0
    pkg syscall (windows-386), const CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY = 33554432
    pkg syscall (windows-386), const CERT_TRUST_REVOCATION_STATUS_UNKNOWN = 64
    pkg syscall (windows-386), const CREATE_ALWAYS = 2
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
Back to top