lib/htty/request.rb
def query_set_all(query_string)
    # _query_string_ as an array of parameters is only for internal usage
    query_string =
      case query_string
        when Array
          query_string.empty? ? nil : query_string.join('&')
        when String
          query_string
        else
          nil
      end
    rebuild_uri query: query_string
  end
# Establishes a new #uri with the query-string parameter specified by by
# _query_string_ parameter
Establishes a new #uri with the query-string parameter specified by by
_query_string_ parameter
Establishes a new #uri with the query - string parameter specified by by _query_string_ parameter
def query_set_all(query_string)
    query_string =
      case query_string
        when Array
          query_string.empty? ? nil : query_string.join('&')
        when String
          query_string
        else
          nil
      end
    rebuild_uri query: query_string
  end
def query_set_all ( query_string ) query_string = case query_string when Array query_string . empty? ? nil : query_string . join ( '&' ) when String query_string else nil end rebuild_uri query : query_string end
Establishes a new #uri with the query-string parameter specified by by
_query_string_ parameter
Establishes a new #uri with the query - string parameter specified by by _query_string_ parameter
# _query_string_ as an array of parameters is only for internal usage
query_string