💾 Archived View for code.lanterne.chilliet.eu › vendor › mcmic › gemini-server › src › Response › Su… captured on 2024-08-18 at 19:28:23.

View Raw

More Information

⬅️ Previous capture (2021-12-17)

-=-=-=-=-=-=-

<?php

declare(strict_types=1);

namespace MCMic\Gemini\Response;

use MCMic\Gemini;

class Success extends Gemini\Response
{
    public function __construct(string $body = '', string $mimetype = 'text/gemini', string $lang = '', string $charset = '')
    {
        if ($charset !== '') {
            $mimetype .= '; charset=' . $charset;
        }
        if ($lang !== '') {
            $mimetype .= '; lang=' . $lang;
        }
        parent::__construct(20, $mimetype, $body);
    }
}