WP_Http_Curl::stream_headers( ressource   $handle , string   $headers ): int

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

Grabs the headers of the cURL request.

Description

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

Parameters

$handle ressource required
cURL handle.
$headers string required
cURL request headers.

Return

int Length of the request headers.

Source

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

Changuelog

Versionen Description
3.2.0 Introduced.

User Contributed Notes

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