Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WP_Http_Curl::stream_headers( resource $handle, string $headers )

Grabs the headers of the cURL request.


Description Description

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


Top ↑

Parameters Parameters

$handle

(resource) (Required) cURL handle.

$headers

(string) (Required) cURL request headers.


Top ↑

Return Return

(int) Length of the request headers.


Top ↑

Source Source

File: wp-includes/class-wp-http-curl.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.