WP_HTTP_Response::get_headers() public WP 4.4.0
Retrieves headers associated with the response.
{} It's a method of the class: WP_HTTP_Response{}
No Hooks.
Return
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. |
Code of WP_HTTP_Response::get_headers() WP HTTP Response::get headers WP 5.7
public function get_headers() {
return $this->headers;
}