wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:256Converts a PSR-7 response to a custom Response.
$psr7ResponseWordPress\AiClientDependencies\Psr\Http\Message\ResponseInterfaceWordPress\AiClient\Providers\Http\DTO\Response private function convertFromPsr7Response(ResponseInterface $psr7Response): Response { $body = (string) $psr7Response->getBody(); // PSR-7 always returns headers as arrays, but HeadersCollection handles this return new Response( $psr7Response->getStatusCode(), $psr7Response->getHeaders(), // @phpstan-ignore-line $body === '' ? null : $body ); }Introduced in 0.1.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.