src/Http/Response.php
public function header($key, $value)
    {
        if (is_array($key) && !empty($key)) {
            foreach ($key as $k => $v) {
                $this->headers->set($k, $v);
            }
        } elseif (is_string($key) && !empty($key)) {
            $this->headers->set($key, $value);
        }
        return $this;
    }
public function header($key, $value)
    {
        if (is_array($key) && !empty($key)) {
            foreach ($key as $k => $v) {
                $this->headers->set($k, $v);
            }
        } elseif (is_string($key) && !empty($key)) {
            $this->headers->set($key, $value);
        }
        return $this;
    }
Add custom header data in Response

@param array|string $key
@param string $value

@return Response