PHP 클래스 Stripe\HttpClient\CurlClient

상속: implements Stripe\HttpClient\ClientInterface
파일 보기 프로젝트 열기: stripe/stripe-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$defaultOptions

공개 메소드들

메소드 설명
__construct ( array | callable | null $defaultOptions = null ) CurlClient constructor.
encode ( array $arr, string | null $prefix = null ) : string
getConnectTimeout ( )
getDefaultOptions ( )
getTimeout ( )
instance ( )
request ( $method, $absUrl, $headers, $params, $hasFile ) END OF USER DEFINED TIMEOUTS
setConnectTimeout ( $seconds )
setTimeout ( $seconds )

비공개 메소드들

메소드 설명
caBundle ( )
handleCurlError ( $url, number $errno, string $message )

메소드 상세

__construct() 공개 메소드

Pass in a callable to $defaultOptions that returns an array of CURLOPT_* values to start off a request with, or an flat array with the same format used by curl_setopt_array() to provide a static set of options. Note that many options are overridden later in the request call, including timeouts, which can be set via setTimeout() and setConnectTimeout(). Note that request() will silently ignore a non-callable, non-array $defaultOptions, and will throw an exception if $defaultOptions returns a non-array value.
public __construct ( array | callable | null $defaultOptions = null )
$defaultOptions array | callable | null

encode() 공개 정적인 메소드

public static encode ( array $arr, string | null $prefix = null ) : string
$arr array An map of param keys to values.
$prefix string | null Only public for testability, should not be called outside of CurlClient
리턴 string A querystring, essentially.

getConnectTimeout() 공개 메소드

public getConnectTimeout ( )

getDefaultOptions() 공개 메소드

public getDefaultOptions ( )

getTimeout() 공개 메소드

public getTimeout ( )

instance() 공개 정적인 메소드

public static instance ( )

request() 공개 메소드

END OF USER DEFINED TIMEOUTS
public request ( $method, $absUrl, $headers, $params, $hasFile )

setConnectTimeout() 공개 메소드

public setConnectTimeout ( $seconds )

setTimeout() 공개 메소드

public setTimeout ( $seconds )

프로퍼티 상세

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

protected $defaultOptions