src/Generics/Client/HttpClientFactory.php
public static function get(Url $url): HttpStream
    {
        if ($url->getScheme() === 'https') {
            return new HttpsClient($url);
        }
        return new HttpClient($url);
    }
public static function get(Url $url): HttpStream
    {
        if ($url->getScheme() === 'https') {
            return new HttpsClient($url);
        }
        return new HttpClient($url);
    }
public static function get ( Url $ url ) : HttpStream { if ( $ url -> getScheme ( ) === 'https' ) { return new HttpsClient ( $ url ) ; } return new HttpClient ( $ url ) ; }
Create a new instance of Http(s) client for given url

@param Url $url
The url to create a http(s) client instance for

@return HttpStream
Create a new instance of Http ( s ) client for given url