WordPress\AiClient\Providers\Http\DTO
Response::__clone
Creates a deep clone of this response.
Clones the headers collection to ensure the cloned response is independent of the original.
Method of the class: Response{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Response = new Response(); $Response->__clone();
Changelog
| Since 0.4.2 | Introduced. |
Response::__clone() Response:: clone code WP 7.0.4
public function __clone()
{
// Clone headers collection
$this->headers = clone $this->headers;
}