Add a query parameter to the cURL request.

@param string $name
@param string $value
961253
public function addParam($name, $value)
    {
        if (!empty($name) && !empty($value)) {
            $this->params[stripslashes(trim($name))] = stripslashes(trim($value));
        }
    }
159603
public function addQuery($name, $value)
    {
        $this->query = array_merge_recursive($this->query, [$name => $value]);
    }
71144
public function addCurlOption($name, $value) {
        if (stripos($name, 'CURLOPT_') === false) {
            $name = strtoupper('CURLOPT_' . $name);
        }
        $this->curlOptions[$name] = $value;
    }
1019333
public function setopt(string $name, mixed $value) : bool
    {
        return curl_setopt($this->ch, $name, $value);
    }
1297871
public function addHeader(string $name, $value)
    {
        $lName = strtolower($name);
        if (isset($this->headers[$lName])) {
            $this->headers[$lName][1] = array_merge(
                $this->headers[$lName][1],
                (array) $value
            );
        } else {
            $this->headers[$lName] = [
                $name,
                (array) $value,
            ];
        }
    }
488912
public function AddCustomHeader($name, $value=null) {
	if ($value === null) {
		// Value passed in as name:value
		$this->CustomHeader[] = explode(':', $name, 2);
	} else {
		$this->CustomHeader[] = array($name, $value);
	}
  }
1158461
public static function OverWriteParameters ($name, $value) {
		static::SetClassVar(array_merge(['_get'], (array) $name), $value);
		$_GET = Arrays::SetLowest($_GET, $name, $value);
	}
1323821
public static function request(String $name = NULL, $value = NULL)
    {
        return self::_method($name, $value, $_REQUEST, __FUNCTION__);
    }
249627
public HttpRequest addQueryParameter(String name, String value) {
    queryParameters.put(
        Objects.requireNonNull(name, "Name must be set"),
        Objects.requireNonNull(value, "Value must be set"));
    return this;
  }
246554
public function addFormParam($name, $value)
    {
        $this->options[GuzzleRequestOptions::FORM_PARAMS][$name] = $value;

        return $this;
    }
976275
public function setVar($name, $value)
	{
		$this->vars[$name] = $value;

		$this->query = null;

		return $this;
	}
514814
public function set(string $name, string $value): void
    {
        $this->parameters[$name] = $value;
    }
932980
public function setRequestParam(string $name, $value): self
    {
        $this->_requestParams[$name] = $value;

        return $this;
    }
728508
public function addHeader(string $name, string $value): Response
    {
        $this->headers->add($name, $value);
        return $this;
    }
1149972
public void addParamQuery(String name, String value) {
        addParam(name, value, NameValuePair.TYPE_QUERY_STRING);
    }
631265
public function add(string $name, $value): void
	{
		Arr::set($this->parameters, $name, $value);
	}
808334
public function addUriParam($name, $value)
    {
        if (in_array($name, [
            'q',
            'df',
            'analyzer',
            'analyze_wildcard',
            'default_operator',
            'lenient',
            'explain',
            '_source',
            '_source_exclude',
            '_source_include',
            'stored_fields',
            'sort',
            'track_scores',
            'timeout',
            'terminate_after',
            'from',
            'size',
            'search_type',
            'scroll',
            'allow_no_indices',
            'ignore_unavailable',
            'typed_keys',
            'pre_filter_shard_size',
            'ignore_unavailable',
        ])) {
            $this->uriParams[$name] = $value;
        } else {
            throw new \InvalidArgumentException(sprintf('Parameter %s is not supported.', $value));
        }

        return $this;
    }