phalconplus Documentation v1.2.0
Methods
Methods Details
  • public function __construct(array $opts)

  • 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 setBaseUrl(string $baseUrl)

    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. Saves
    the 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()