Function HttpDownloaderCurl->file_curl_body
Definitions
sources/http.php
- Callback for receiving a part of the cURL body.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $ch | resource | No | No | required parameter | N/A | N/A | cURL resource handle |
| $str | string | No | No | required parameter | N/A | N/A | Body part |
Returns
- Length of body part
- Type: integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Callback for receiving a part of the cURL body.
*
* @param resource $ch cURL resource handle
* @param string $str Body part
* @return integer Length of body part
*/
protected function file_curl_body($ch, string $str) : int
* Callback for receiving a part of the cURL body.
*
* @param resource $ch cURL resource handle
* @param string $str Body part
* @return integer Length of body part
*/
protected function file_curl_body($ch, string $str) : int

