wp_remote_retrieve_headers

Advertisement

Summery Summery

Retrieve only the headers from the raw response.

Syntax Syntax

wp_remote_retrieve_headers( array|WP_Error $response )

Parameters Parameters

$response

(array|WP_Error) (Required) HTTP response.

Return Return

(array|Requests_Utility_CaseInsensitiveDictionary) The headers of the response. Empty array if incorrect parameter given.

Source Source

File: wp-includes/http.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Return value changed from an array to an Requests_Utility_CaseInsensitiveDictionary instance.
2.7.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.