Definition:
function wp_remote_retrieve_headers(&$response) {}
Retrieve only the headers from the raw response.
Parameters
- array $response: HTTP response.
- &$response
Return values
returns:The headers of the response. Empty array if incorrect parameter given.
Source code
function wp_remote_retrieve_headers(&$response) {
if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))
return array();
return $response['headers'];
}
4047

February 12, 2011 


No comments yet... Be the first to leave a reply!