/** * @param string $name * @param string $value * @return Response * @throws RequestException */ public function sendHeader(string $name, string $value) : self { if (strtolower($name) === "location") { // Suggest using "redirect" method throw RequestException::sendHeaderLocation(__METHOD__); } // Send raw header header(sprintf('%1$s: %2$s', $name, $value)); return $this; }