CurlClient::setRequestStatusCallback()
Method: Sets a callback that is called after each request. The callback will receive the following parameters:
- string $rbody The response body
- integer $rcode The response status code
- \Stripe\Util\CaseInsensitiveArray $rheaders The response headers
- integer $errno The curl error number
- string|null $message The curl error message
- boolean $shouldRetry Whether the request will be retried
- integer $numRetries The number of the retry attempt
.
CurlClient::setRequestStatusCallback Read More »