headers('Location'); $this->headers('Location', $uri); return $this; } /** * Validate this exception contains everything needed to continue. * * @throws KO7_Exception * @return bool */ public function check() { if ($location = $this->headers('location') === NULL) throw new KO7_Exception('A \'location\' must be specified for a redirect'); if (strpos($location, '://') === FALSE) throw new KO7_Exception('An absolute URI to the proxy server must be specified'); return TRUE; } }