PHP 클래스 Essence\Http\Client\Curl

상속: implements Essence\Http\Client
파일 보기 프로젝트 열기: benjamminf/craft-embedded-assets

보호된 프로퍼티들

프로퍼티 타입 설명
$_curl resource CURL handle.
$_defaults array Default cURL options, takes precedence over the user options.

공개 메소드들

메소드 설명
__construct ( array $options = [] ) Initializes cURL with the given options.
__destruct ( ) Closes cURL connexion.
get ( $url ) {@inheritDoc}
setUserAgent ( $agent ) {@inheritDoc}

메소드 상세

__construct() 공개 메소드

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

__destruct() 공개 메소드

Closes cURL connexion.
public __destruct ( )

get() 공개 메소드

{@inheritDoc}
public get ( $url )

setUserAgent() 공개 메소드

{@inheritDoc}
public setUserAgent ( $agent )

프로퍼티 상세

$_curl 보호되어 있는 프로퍼티

CURL handle.
protected resource $_curl
리턴 resource

$_defaults 보호되어 있는 프로퍼티

Default cURL options, takes precedence over the user options.
protected array $_defaults
리턴 array