Свойство | Тип | Описание | |
---|---|---|---|
$curlSSLVerifypeer | |||
$requestData | |||
$requestHeaders | |||
$requestMethod | |||
$responseOutputHeader | |||
$responseStatus | |||
$setRequestHeaders | |||
$timeout |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
getPHPInput ( ) : array | See this trick at http://www.php.net/manual/en/function.curl-setopt.php#96056. |
public getClientHeaders ( ) : array | ||
Результат | array |
public getRequest ( ) : array | ||
Результат | array |
public getRequestData ( ) : array | ||
Результат | array |
public getRequestMethod ( ) : string | ||
Результат | string |
public getResponseStatus ( ) : integer | ||
Результат | 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 ) |