public function setHeader($name, $value)
    {
        $name = trim($name);
        $this->headers[$name] = trim($value);

        return $this;
    }
public function setHeader($name, $value)
    {
        $name = trim($name);
        $this->headers[$name] = trim($value);

        return $this;
    }
public function setHeader ( $ name , $ value ) { $ name = trim ( $ name ) ; $ this -> headers [ $ name ] = trim ( $ value ) ; return $ this ; }
Set a new header.

@param string $name
@param string $value

@return self
Set a new header .