Requests_Response_Headers::getValues() WordPress Method
The Requests_Response_Headers::getValues() method is used to get an array of all header values from a WordPress HTTP response.
Requests_Response_Headers::getValues( string $key ) #
Get all values for a given header
Contents
Parameters
- $key
(string)(Required)
Return
(array|null) Header values
Source
File: wp-includes/Requests/Response/Headers.php
public function getValues($key) { $key = strtolower($key); if (!isset($this->data[$key])) { return null; } return $this->data[$key]; }
Expand full source codeCollapse full source codeView on TracView on GitHub