# File lib/sinatra/rabbit.rb, line 207 def generate_head current_collection = self ::Sinatra::Application.head("/api/#{name}") do methods_allowed = current_collection.operations.collect { |o| o[1].method.to_s.upcase }.uniq.join(',') headers 'Allow' => "HEAD,OPTIONS,#{methods_allowed}" [200, ''] end end