메소드 |
설명 |
|
__construct ( string $url = null, string $method = self::HTTP_POST, array $configs = [] ) |
|
|
addCurlOption ( $name, $value ) |
|
|
addHeader ( $name, $value, $overWrite = true ) |
|
|
getCurlOptions ( ) |
|
|
getHeader ( $name ) |
|
|
getHeaders ( ) |
|
|
getHttpConstantsFromConfigs ( array $configs = [], $prefix ) : array |
Retrieves an array of constant key, and value based on Prefix |
|
getHttpRetryCount ( ) |
|
|
getMethod ( ) |
|
|
getUrl ( ) |
|
|
removeCurlOption ( $name ) |
Removes a curl option from the list |
|
removeHeader ( $name ) |
|
|
setCurlOptions ( $options ) |
|
|
setHeaders ( array $headers ) |
|
|
setHttpProxy ( string $proxy ) |
Set HTTP proxy information |
|
setHttpRetryCount ( $retryCount ) |
|
|
setHttpTimeout ( integer $timeout ) |
Set connection timeout in seconds |
|
setSSLCert ( string $certPath, $passPhrase = null ) |
Set ssl parameters for certificate based client authentication |
|
setUrl ( $url ) |
|
|
setUserAgent ( string $userAgentString ) |
Sets the User-Agent string on the HTTP request |
|