# File lib/typhoeus/hydra_mock.rb, line 5 def initialize(url, method, options = {}) @url = url @uri = URI.parse(url) if url.kind_of?(String) @method = method @requests = [] @options = options if @options[:headers] @options[:headers] = Typhoeus::NormalizedHeaderHash.new(@options[:headers]) end @current_response_index = 0 end