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() WordPress Method

The WP_Http_Curl::stream_headers() method is used to retrieve the HTTP headers from a cURL request. This can be useful for debugging purposes or for retrieving specific information from the headers.

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

Grabs the headers of the cURL request.


Description

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


Top ↑

Parameters

$handle

(resource)(Required)cURL handle.

$headers

(string)(Required)cURL request headers.


Top ↑

Return

(int) Length of the request headers.


Top ↑

Source

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

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

Top ↑

Changelog

Changelog
VersionDescription
3.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.