Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RequestProxy.php

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\Http

Code

public function isSecure() : bool {
    return 0 === strpos((string) $this->url, 'https://');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal