WP_HTTP_Response::get_headers()
Retrieves headers associated with the response.
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. |
WP_HTTP_Response::get_headers() WP HTTP Response::get headers code WP 6.5.2
public function get_headers() { return $this->headers; }