public function getDefaultUserAgent(): string
    {
        $defaultAgent = 'Swoft/' . App::version();
        if (\extension_loaded('curl') && \function_exists('curl_version')) {
            $defaultAgent .= ' curl/' . \curl_version()['version'];
        }
        $defaultAgent .= ' PHP/' . PHP_VERSION;
        return $defaultAgent;
    }