def new_client
      client = Hurley::Client.new
      client.request_options.query_class = Hurley::Query::Flat
      client.request_options.redirection_limit = 0
      client.header[:user_agent] = user_agent

      client.connection = @connection if @connection
      @request_options.each_pair {|key, value| client.request_options[key] = value } if @request_options
      @ssl_options.each_pair {|key, value| client.ssl_options[key] = value } if @ssl_options

      client
    end
def new_client
      client = Hurley::Client.new
      client.request_options.query_class = Hurley::Query::Flat
      client.request_options.redirection_limit = 0
      client.header[:user_agent] = user_agent

      client.connection = @connection if @connection
      @request_options.each_pair {|key, value| client.request_options[key] = value } if @request_options
      @ssl_options.each_pair {|key, value| client.ssl_options[key] = value } if @ssl_options

      client
    end
Create a new HTTP client.
 @return [Hurley::Client]