code: public static function get(Url $url): HttpStream
      {
          if ($url->getScheme() === 'https') {
              return new HttpsClient($url);
          }
          return new HttpClient($url);
      }
docs: 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