protected function validateMethod(string $method): void
    {
        if (! RequestMethod::isValid($method)) {
            throw new InvalidMethod(
                sprintf(
                    'Unsupported HTTP method "%s" provided',
                    $method
                )
            );
        }
    }