WP_Http_Curl::stream_headers()privateWP 3.2.0

Grabs the headers of the cURL request.

Each header is sent individually to this callback, and is appended to the $header property for temporary storage.

Method of the class: WP_Http_Curl{}

No Hooks.


Int. Length of the request headers.


// 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.


Since 3.2.0 Introduced.

WP_Http_Curl::stream_headers() code WP 6.5.4

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