Register a callback function to execute whenever a data stream is written to using
CFRequest::streaming_write_callback()
.
The user-defined callback function should accept two arguments:
$curl_handle
-resource
- Required - The cURL handle resource that represents the in-progress transfer.$length
-integer
- Required - The length in kilobytes of the data chunk that was transferred.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The callback function is called by
|
Returns
Type |
Description |
---|---|
A reference to the current instance. |
Source
Method defined in lib/requestcore/requestcore.class.php | Toggle source view (6 lines) | View on GitHub