WP_Http_Curl::stream_headers
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 Http Curl::stream headers WP 7.1
private function stream_headers( $handle, $headers ) {
$this->headers .= $headers;
return strlen( $headers );
}