aboutsummaryrefslogtreecommitdiff
path: root/src/Http/ResponseInterface.php
blob: cb74ea0b2cab420ef2f941527707d7d411e5332a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

declare(strict_types=1);

namespace BrettParson\MiniRoute\Http;

interface ResponseInterface
{
    public function status(): int;

    public function body(): string;

    /**
     * Return a copy of the response with an additional (or overridden) header.
     */
    public function withHeader(string $name, string $value): ResponseInterface;
}