CURL_PROXY_QUIRK_VER
CURL_PROXY_QUIRK_VER
Class AdventureResCurlHttpClient
$adventureResCurl : \AdventureRes\HttpClients\AdventureResCurl
__construct(\AdventureRes\HttpClients\AdventureResCurl $adventureResCurl = null)
AdventureResCurlHttpClient constructor
\AdventureRes\HttpClients\AdventureResCurl | $adventureResCurl |
send(string $url, string $method, string $body, array $headers, integer $timeOut) : \AdventureRes\Http\ApiRawResponse
Sends a request to the server and returns the raw response.
string | $url | The endpoint to send the request to. |
string | $method | The request method. |
string | $body | The body of the request. |
array | $headers | The request headers. |
integer | $timeOut | The timeout in seconds for the request. |
Raw response from the server.
openConnection(string $url, string $method, string $body, array $headers, integer $timeOut)
Opens a new curl connection.
string | $url | The endpoint to send the request to. |
string | $method | The request method. |
string | $body | The body of the request. |
array | $headers | The request headers. |
integer | $timeOut | The timeout in seconds for the request. |