class HTTPX::Connection::HTTP2::GoawayError

  1. lib/httpx/connection/http2.rb
Superclass: Error

Methods

Public Class

  1. new

Public Instance

  1. last_stream_id
  2. unrecoverable?

Constants

UNRECOVERABLE_ERRORS = %i[settings_timeout inadequate_security].freeze  

Public Class methods

new(code, last_stream_id)
[show source]
   # File lib/httpx/connection/http2.rb
28 def initialize(code, last_stream_id)
29   @code = code
30   @last_stream_id = last_stream_id
31   super(0, code)
32 end

Public Instance methods

last_stream_id()
[show source]
   # File lib/httpx/connection/http2.rb
34 def last_stream_id
35   return Float::INFINITY if unrecoverable?
36 
37   @last_stream_id
38 end
unrecoverable?()
[show source]
   # File lib/httpx/connection/http2.rb
40 def unrecoverable?
41   UNRECOVERABLE_ERRORS.include?(@code)
42 end