Method: Protocol::HTTP2::Connection#close

Defined in:
lib/protocol/http2/connection.rb

#close(error = nil) ⇒ Object

Close the underlying framer and all streams.



106
107
108
109
110
# File 'lib/protocol/http2/connection.rb', line 106

def close(error = nil)
	@framer.close
	
	@streams.each_value{|stream| stream.close(error)}
end