public function header($key = null, $value = null) { return $this->isNull($key) ? $this->headers->getAll() : $this->headers->get($key, $value); }