code: public function redirect(string $url) : object
      {
          $this->addHeader("Location: " . $url);
          $this->body = null;
          return $this;
      }
docs: Redirect to another page.
  
  @param string $url to redirect to
  
  @return self