src/Request.php
public function setHeader()
    {
        $args = func_get_args();

        if (is_array($args[0])) {
            foreach ($args[0] as $key => $value)
                $this->headers['headers'][$key] = $value;
        } else {
            $this->headers['headers'][$args[0]] = $args[1];
        }

        return $this;
    }
public function setHeader()
    {
        $args = func_get_args();

        if (is_array($args[0])) {
            foreach ($args[0] as $key => $value)
                $this->headers['headers'][$key] = $value;
        } else {
            $this->headers['headers'][$args[0]] = $args[1];
        }

        return $this;
    }
public function setHeader ( ) { $ args = func_get_args ( ) ; if ( is_array ( $ args [ 0 ] ) ) { foreach ( $ args [ 0 ] as $ key => $ value ) $ this -> headers [ 'headers' ] [ $ key ] = $ value ; } else { $ this -> headers [ 'headers' ] [ $ args [ 0 ] ] = $ args [ 1 ] ; } return $ this ; }
Add an additional header to the request
Can also use the cleaner syntax of

@return $this
Add an additional header to the request Can also use the cleaner syntax of