function RequestProxy::isSecure
Returns true if this is a secure (HTTPS) proxy
A false value means that this is either an HTTP proxy, or that a proxy is not required for this request, or that the user has not set a proxy.
1 call to RequestProxy::isSecure()
- RequestProxy::getCurlOptions in vendor/
composer/ composer/ src/ Composer/ Util/ Http/ RequestProxy.php - Returns an array of curl proxy options
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Http/ RequestProxy.php, line 147
Class
- RequestProxy
- @internal @author John Stevenson <john-stevenson@blueyonder.co.uk>
Namespace
Composer\Util\HttpCode
public function isSecure() : bool {
return 0 === strpos((string) $this->url, 'https://');
}