Habari\RemoteRequest::set_postdata PHP Method

set_postdata() public method

set postdata
public set_postdata ( mixed $name, string $value = null )
$name mixed
$value string
    public function set_postdata($name, $value = null)
    {
        if (is_array($name)) {
            $this->postdata = array_merge($this->postdata, $name);
        } else {
            $this->postdata[$name] = $value;
        }
    }