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.

Метод класса: WP_Http_Curl{}

Хуков нет.

Возвращает

int. Length of the request headers.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->stream_headers( $handle, $headers );
$handle(resource) (обязательный)
cURL handle.
$headers(строка) (обязательный)
cURL request headers.

Список изменений

С версии 3.2.0 Введена.

Код WP_Http_Curl::stream_headers() WP 6.5.2

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