Свойство | Тип | Описание | |
---|---|---|---|
$mapper | JsonMapper | Used for Mapping response Json to Class instances. |
Метод | Описание | |
---|---|---|
__construct ( ) | ||
addCookie ( $key, $value ) | Add Cookie to the Request | |
addFile ( $key, $file ) | Add File to the Request | |
addHeader ( $key, $value ) | Add Header to the Request | |
addParam ( $key, $value ) | Add Parameter to the Request | |
clearCookies ( ) | ||
clearHeaders ( ) | ||
clearParams ( ) | ||
execute ( ) : |
Execute the Request | |
getCookies ( ) : array | ||
getHeaders ( ) : array | ||
getMethod ( ) : string | ||
getParams ( ) : array | ||
getUrl ( ) : string | ||
setProxy ( $proxy ) | Set Proxy to be used for Requests | |
setProxyCredentials ( $credentials ) | Set Proxy Credentials to be used for Requests | |
setVerifyPeer ( $verifyPeer ) | Enable/Disable SSL Verification of Peer |
public addCookie ( $key, $value ) | ||
$key | string Cookie Key | |
$value | string Cookie Value |
public addFile ( $key, $file ) | ||
$key | string File Key | |
$file | RequestFile |
public addHeader ( $key, $value ) | ||
$key | string Header Key | |
$value | string Header Value |
public addParam ( $key, $value ) | ||
$key | string Parameter Key | |
$value | string Parameter Value |
public execute ( ) : |
||
Результат | The Response |
public setProxy ( $proxy ) | ||
$proxy | string |
public setProxyCredentials ( $credentials ) | ||
$credentials | string |
public setVerifyPeer ( $verifyPeer ) | ||
$verifyPeer | boolean |