class Protocol::HTTP2::Stream

def close!(error_code = nil)

Parameters:
  • error_code (Integer) -- the error code if the stream was closed due to a stream reset.
def close!(error_code = nil)
	@state = :closed
	@connection.delete(@id)
	
	if error_code
		error = StreamError.new("Stream closed!", error_code)
	end
	
	self.closed(error)
	
	return self
end