wp-includes/Requests/src/Transport/Curl.php:506Collect the headers as they are received
$handleresource|CurlHandle$headersstringinteger public function stream_headers($handle, $headers) { // Why do we do this? cURL will send both the final response and any // interim responses, such as a 100 Continue. We don't need that. // (We may want to keep this somewhere just in case) if ($this->done_headers) { $this->headers = ''; $this->done_headers = false; } $this->headers .= $headers; if ($headers === "\r\n") { $this->done_headers = true; } return strlen($headers); }Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/Requests/src/Transport/Curl.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.