WP_HTTP_Response::get_headers() WordPress Method
The WP_HTTP_Response::get_headers() function returns an array of headers for the current HTTP response. This can be useful for debugging or for making sure that the correct headers are being sent to the client.
WP_HTTP_Response::get_headers() #
Retrieves headers associated with the response.
Return
(array) Map of header name to header value.
Source
File: wp-includes/class-wp-http-response.php
public function get_headers() { return $this->headers; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |