Function HttpDownloader->copy_from_other
Definitions
sources/http.php
- Copy response metadata from one object to another.Does not copy response data, that is returned as a string.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $from | object | No | No | required parameter | N/A | N/A | The child response |
| $to | object | No | No | required parameter | N/A | N/A | The parent response |
Returns
- The data downloaded (null: error)
- Type: ?string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Copy response metadata from one object to another.Does not copy response data, that is returned as a string.
*
* @param object $from The child response
* @param object $to The parent response
* @return ?string The data downloaded (null: error)
*/
protected function copy_from_other(object $from, object $to) : ?string
* Copy response metadata from one object to another.Does not copy response data, that is returned as a string.
*
* @param object $from The child response
* @param object $to The parent response
* @return ?string The data downloaded (null: error)
*/
protected function copy_from_other(object $from, object $to) : ?string

