public function setHeader($name, $value)
    {
        if (strval($value) === '') {
            $this->deleteHeader($name);
        } else {
            $this->requestOptions['headers'][$name] = $value;
        }
    }
public function setHeader($name, $value)
    {
        if (strval($value) === '') {
            $this->deleteHeader($name);
        } else {
            $this->requestOptions['headers'][$name] = $value;
        }
    }
public function setHeader ( $ name , $ value ) { if ( strval ( $ value ) === '' ) { $ this -> deleteHeader ( $ name ) ; } else { $ this -> requestOptions [ 'headers' ] [ $ name ] = $ value ; } }
Sets the request header to the passed value.  The header will be
sent along with the next request.

Passing an empty value clears the header, which is the equivalent
of calling deleteHeader.

@param string $name the name of the header
@param string $value the value of the header
Sets the request header to the passed value . The header will be sent along with the next request .