Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fromHttp2 (1.24 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/ErrorCode.kt

      CANCEL(8),
    
      COMPRESSION_ERROR(9),
    
      CONNECT_ERROR(0xa),
    
      ENHANCE_YOUR_CALM(0xb),
    
      INADEQUATE_SECURITY(0xc),
    
      HTTP_1_1_REQUIRED(0xd),
      ;
    
      companion object {
        fun fromHttp2(code: Int): ErrorCode? = values().find { it.httpCode == code }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        stream: Http2Stream? = null,
      ): Boolean {
        if (effect == null) return false
    
        when (effect) {
          is CloseStream -> {
            if (stream != null) {
              stream.close(ErrorCode.fromHttp2(effect.http2ErrorCode)!!, null)
            } else {
              socket.close()
            }
          }
    
          ShutdownConnection -> {
            if (stream != null) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
Back to top