WP_HTTP_Response::get_headers
Retrieves headers associated with the response.
Method of the class: WP_HTTP_Response{}
No Hooks.
Returns
Array. Map of header name to header value.
Usage
$WP_HTTP_Response = new WP_HTTP_Response(); $WP_HTTP_Response->get_headers();
Changelog
| Since 4.4.0 | Introduced. |
WP_HTTP_Response::get_headers() WP HTTP Response::get headers code WP 7.0.2
public function get_headers() {
return $this->headers;
}