# File lib/sinatra/rabbit.rb, line 240
      def generate_head
        current_collection = self
        Rabbit::routes << [:head, "#{settings.root_url}/#{name}"]
        ::Sinatra::Application.head("#{settings.root_url}/#{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