src/Leevel/Http/Request.php
public function isAcceptAny(): bool
    {
        $accept = $this->headers->get('ACCEPT');

        if (!$accept) {
            return true;
        }

        if (false !== strpos($accept, '*')) {
            return true;
        }

        return false;
    }
public function isAcceptAny(): bool
    {
        $accept = $this->headers->get('ACCEPT');

        if (!$accept) {
            return true;
        }

        if (false !== strpos($accept, '*')) {
            return true;
        }

        return false;
    }
是否为接受任何请求.

@return bool