<?php

namespace Sitecake\Http;

/**
 * HTTP redirect response — replaces Symfony\Component\HttpFoundation\RedirectResponse.
 */
class RedirectResponse extends Response
{
    public function __construct(string $url, int $status = 302, array $headers = [])
    {
        parent::__construct('', $status, $headers);
        $this->headers->set('Location', $url);
    }
}
