-
getAllowedMethods() : voidGet allowed methods.
-
Set the default headers for every request.
-
getDefaultHeaders() : voidGet the default headers.
-
Set the default curl options for every request.
-
getDefaultOptions() : voidGet the default options.
-
Build an URL with an optional query string.
-
Create a new response object and set its values.
-
Create a new JSON request and set its values.
-
Create a new raw request and set its values.
-
Prepare the curl resource for sending a request.
-
Send a request.
-
Extract the response info, header and body from a cURL response. Saves
-
Handle dynamic calls to the class.
-
public function getAllowedMethods()
Get allowed methods. -
public function setDefaultHeaders(array $headers)
Set the default headers for every request. -
public function getDefaultHeaders()
Get the default headers. -
public function setDefaultOptions(array $options)
Set the default curl options for every request. -
public function getDefaultOptions()
Get the default options. -
public function buildUrl(string $url, array $query)
Build an URL with an optional query string. -
public function newRequest(string $method, string $url, variable $data, int $encoding)
Create a new response object and set its values. -
public function newJsonRequest(string $method, string $url, array $data)
Create a new JSON request and set its values. -
public function newRawRequest(string $method, string $url, variable $data)
Create a new raw request and set its values. -
public function prepareRequest(variable $request)
Prepare the curl resource for sending a request. -
public function sendRequest(variable $request)
Send a request. -
protected function createResponseObject(variable $response)
Extract the response info, header and body from a cURL response. Savesthe data in variables stored on the object. -
public function __call(string $func, array $args)
Handle dynamic calls to the class. -
internal function zephir_init_properties_PhalconPlus_Curl_Curl()