WordPress\AiClient\Providers\Http\DTO

Response::__clonepublicWP 0.4.2

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() code WP 7.1

public function __clone()
{
    // Clone headers collection
    $this->headers = clone $this->headers;
}