wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php:161Prepares headers for WordPress HTTP API.
$requestWordPress\AiClientDependencies\Psr\Http\Message\RequestInterfacearray<string, private function prepare_headers( RequestInterface $request ): array { $headers = array(); foreach ( $request->getHeaders() as $name => $values ) { $headers[ (string) $name ] = implode( ', ', $values ); } return $headers; }Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.