WpOrg\Requests\Response
Headers::getValues()
Get all values for a given header
Method of the class: Headers{}
No Hooks.
Return
Array|null
. Header values
Usage
$Headers = new Headers(); $Headers->getValues( $offset );
- $offset(string) (required)
- Name of the header to retrieve.
Headers::getValues() Headers::getValues code WP 6.6.2
public function getValues($offset) { if (!is_string($offset) && !is_int($offset)) { throw InvalidArgument::create(1, '$offset', 'string|int', gettype($offset)); } if (is_string($offset)) { $offset = strtolower($offset); } if (!isset($this->data[$offset])) { return null; } return $this->data[$offset]; }