CurlCapabilities
class CurlCapabilities
Constants
| protected MINIMUM_PINNING_VERSION |
|
| protected MINIMUM_TLS_1_2_VERSION |
|
| protected MINIMUM_HTTPS_PROXY_VERSION |
|
Properties
| static protected bool | $pinningSupported | Indicates whether the cURL transport has passed the pinning check. |
|
| static protected null|array{version: string, features: int}|false | $versionInfo | The libcurl version and feature bits of this process. |
Methods
Ensure the cURL transport can pin connections to vetted addresses.
Ensure an HTTPS proxy cannot be silently downgraded to plaintext.
Read the process's libcurl version information once per worker.
Return an integer cURL constant when the extension exposes it correctly.
Throw an error naming the missing capability.
Flush all static state.
Details
at line 32
static void
ensurePinningSupported()
Ensure the cURL transport can pin connections to vetted addresses.
at line 77
static void
ensureHttpsProxySupported(string $host, int $port)
Ensure an HTTPS proxy cannot be silently downgraded to plaintext.
at line 97
static protected array|false
versionInfo()
Read the process's libcurl version information once per worker.
at line 125
static protected int|null
integerConstant(string $name)
Return an integer cURL constant when the extension exposes it correctly.
at line 141
static protected never
fail(string $capability, string|null $version)
Throw an error naming the missing capability.
at line 153
static void
flushState()
Flush all static state.