wp-includes/class-wp-http-requests-response.php:65Retrieves headers associated with the response.
WpOrg\Requests\Utility\CaseInsensitiveDictionary public function get_headers() { // Ensure headers remain case-insensitive. $converted = new WpOrg\Requests\Utility\CaseInsensitiveDictionary(); foreach ( $this->response->headers->getAll() as $key => $value ) { if ( count( $value ) === 1 ) { $converted[ $key ] = $value[0]; } else { $converted[ $key ] = $value; } } return $converted; }Introduced in 4.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-http-requests-response.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.