Property | Type | Description | |
---|---|---|---|
$mapper | JsonMapper | Used for Mapping response Json to Class instances. |
Method | Description | |
---|---|---|
__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 ( ) : |
||
return | The Response |
public setProxyCredentials ( $credentials ) | ||
$credentials | string |
public setVerifyPeer ( $verifyPeer ) | ||
$verifyPeer | boolean |