Свойство | Type | Description | |
---|---|---|---|
$curlSSLVerifypeer | |||
$requestData | |||
$requestHeaders | |||
$requestMethod | |||
$responseOutputHeader | |||
$responseStatus | |||
$setRequestHeaders | |||
$timeout |
Méthode | Description | |
---|---|---|
__construct ( ) | ||
getClientHeaders ( ) : array | Get client request headers. | |
getFiles ( ) : array | Get clent file(s) submited by POST or PUT. | |
getRequest ( ) : array | Get clent HTTP Request type. | |
getRequestData ( ) : array | Getter for requestData. | |
getRequestMethod ( ) : string | Getter for requstMethod. | |
getResponseStatus ( ) : integer | Getter for responseStatus. | |
sendRequest ( string $uri, string $method = 'GET', array | string $data = null ) : booeal | Send HTTP Request to server. | |
setRequestAuthorization ( string $signature, string $type = 'Basic' ) | Set HTTP Headers Authorization. | |
setRequestHeaders ( array $options = [] ) | Set additional HTTP Request headers. | |
setResponseHeader ( $code = 200 ) | Set HTTP Response headers code. | |
wrapResponseOutput ( array $data, string $format = 'json', string $ContentType = 'application' ) : string | The return data type. |
Méthode | Description | |
---|---|---|
getPHPInput ( ) : array | See this trick at http://www.php.net/manual/en/function.curl-setopt.php#96056. |
public getClientHeaders ( ) : array | ||
Résultat | array |
public getRequest ( ) : array | ||
Résultat | array |
public getRequestData ( ) : array | ||
Résultat | array |
public getRequestMethod ( ) : string | ||
Résultat | string |
public getResponseStatus ( ) : integer | ||
Résultat | integer |
public setRequestAuthorization ( string $signature, string $type = 'Basic' ) | ||
$signature | string | Secret string to access the server |
$type | string | The Auth type eg: Basic, OAuth etc |
public setRequestHeaders ( array $options = [] ) | ||
$options | array |
public setResponseHeader ( $code = 200 ) |