Accedi
IT
games/xencenter-xenadmin-xcp-jumphp / src / Xapi / HttpReply.php · commit fb1b7c9
<?phpnamespace App\Xapi;/** The answer of an HTTP request (headers in lower case). */final class HttpReply{    /** @param array<string, string> $headers */    public function __construct(public int $status, public array $headers, public string $body)    {    }    public function ok(): bool    {        return $this->status >= 200 && $this->status < 300;    }}