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.
Grabs the headers of the cURL request.
Each header is sent individually to this callback, so we append to the $header
property for temporary storage
(resource) (Required) cURL handle.
(string) (Required) cURL request headers.
(int) Length of the request headers.
File: wp-includes/class-wp-http-curl.php
private function stream_headers( $handle, $headers ) { $this->headers .= $headers; return strlen( $headers ); }
Version | Description |
---|---|
3.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http_curl/stream_headers