Method: HTTP::Protocol::HTTP2::Connection#send_goaway
- Defined in:
- lib/http/protocol/http2/connection.rb
#send_goaway(error_code = 0, message = "") ⇒ Object
144 145 146 147 148 149 150 151 |
# File 'lib/http/protocol/http2/connection.rb', line 144 def send_goaway(error_code = 0, = "") frame = GoawayFrame.new frame.pack @remote_stream_id, error_code, write_frame(frame) @state = :closed end |