WordPress at a glance
function is not described

WP_Http_Curl::stream_headers() private WP 3.2.0

Grabs the headers of the cURL request.

Each header is sent individually to this callback, so we append to the $header property for temporary storage

{} It's a method of the class: WP_Http_Curl{}

No Hooks.

Return

Int. Length of the request headers.

Usage

// private - for code of main (parent) class only
$result = $this->stream_headers( $handle, $headers );
$handle(resource) (required)
cURL handle.
$headers(string) (required)
cURL request headers.

Changelog

Since 3.2.0 Introduced.

Code of WP_Http_Curl::stream_headers() WP 5.7.1

<?php
private function stream_headers( $handle, $headers ) {
	$this->headers .= $headers;
	return strlen( $headers );
}