PHP Class Essence\Http\Client\Curl

Inheritance: implements Essence\Http\Client
Afficher le fichier Open project: benjamminf/craft-embedded-assets

Protected Properties

Свойство Type Description
$_curl resource CURL handle.
$_defaults array Default cURL options, takes precedence over the user options.

Méthodes publiques

Méthode Description
__construct ( array $options = [] ) Initializes cURL with the given options.
__destruct ( ) Closes cURL connexion.
get ( $url ) {@inheritDoc}
setUserAgent ( $agent ) {@inheritDoc}

Method Details

__construct() public méthode

Initializes cURL with the given options.
public __construct ( array $options = [] )
$options array

__destruct() public méthode

Closes cURL connexion.
public __destruct ( )

get() public méthode

{@inheritDoc}
public get ( $url )

setUserAgent() public méthode

{@inheritDoc}
public setUserAgent ( $agent )

Property Details

$_curl protected_oe property

CURL handle.
protected resource $_curl
Résultat resource

$_defaults protected_oe property

Default cURL options, takes precedence over the user options.
protected array $_defaults
Résultat array