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.
Method of the class: WP_Http_Curl{}
No Hooks.
Returns
Int. Length of the request headers.
Usage
// private - for code of main (parent) class only $result = $this->stream_headers( $handle, $headers );
- $handle(resource) (required)
- cURL handle.
- $headers(string) (required)
- cURL request headers.
Changelog
| Since 3.2.0 | Introduced. |
WP_Http_Curl::stream_headers() WP Http Curl::stream headers code WP 6.9.1
private function stream_headers( $handle, $headers ) {
$this->headers .= $headers;
return strlen( $headers );
}