__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 |
---|
array
getLastResponse() : string
access | public |
---|
string
requestsLeft() : int
int
send(string $url, string $requestMethod, string $data, array $headers) : string
access | public |
---|
string
URL of request
string
(GET|POST|PUT|DELETE)
string
Data in string format
array
\Moneybird\HttpClient_Exception |
|
---|---|
\Moneybird\HttpClient_HttpStatusException |
|
\Moneybird\HttpClient_UnknownHttpStatusException |
|
\Moneybird\HttpClient_ConnectionErrorException |
string
setAuth(string $username, string $password) : \Moneybird\HttpClient
access | public |
---|
string
Username
string
Password
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 |
---|