__construct()
__destruct()
getHeaders()
getLastResponse()
requestsLeft()
send()
setAuth()
setUserAgent()
closeConnection()
exec()
handleError()
openConnection()
preDeleteRequest()
preGetRequest()
prePostRequest()
prePutRequest()
setConnectionOptions()
$verifyHostAndPeer
$connection
$connectionOptions
$httpStatus
$lastHeader
$response
$tmpFile
Wrapper for curl to create http requests
__construct()
| access | public |
|---|
__destruct()
| access | public |
|---|
getHeaders() : array
| access | public |
|---|
arraygetLastResponse() : string
| access | public |
|---|
stringrequestsLeft() : int
intsend(string $url, string $requestMethod, string $data, array $headers) : string
| access | public |
|---|
stringURL of request
string(GET|POST|PUT|DELETE)
stringData in string format
array
\Moneybird\HttpClient_Exception |
|
|---|---|
\Moneybird\HttpClient_HttpStatusException |
|
\Moneybird\HttpClient_UnknownHttpStatusException |
|
\Moneybird\HttpClient_ConnectionErrorException |
stringsetAuth(string $username, string $password) : \Moneybird\HttpClient
| access | public |
|---|
stringUsername
stringPassword
exec() : \Moneybird\HttpClient
| access | protected |
|---|
\Moneybird\HttpClient_HttpStatusException |
|
|---|---|
\Moneybird\HttpClient_UnknownHttpStatusException |
|
\Moneybird\HttpClient_ConnectionErrorException |
handleError()
| access | protected |
|---|
\Moneybird\HttpClient_HttpStatusException |
|
|---|---|
\Moneybird\HttpClient_UnknownHttpStatusException |
openConnection() : \Moneybird\HttpClient
setConnectionOptions(array $options) : \Moneybird\HttpClient
| access | protected |
|---|
array
\Moneybird\HttpClient_ConnectionErrorException |
|---|
$verifyHostAndPeer : bool
| access | protected |
|---|---|
| static |
$connection : resource
| access | protected |
|---|
$connectionOptions : array
| access | protected |
|---|
$httpStatus : int
| access | protected |
|---|
$lastHeader : string
| access | protected |
|---|
$response : string
| access | protected |
|---|
$tmpFile : resource
| access | protected |
|---|