Uses
Uses | Description |
---|---|
wp-includes/Requests/Exception.php: Requests_Exception::__construct() | Create a new exception |
Set the given item
(string) (Required) Item name
(string) (Required) Item value
File: wp-includes/Requests/Response/Headers.php
public function offsetSet($key, $value) { if ($key === null) { throw new Requests_Exception('Object is a dictionary, not a list', 'invalidset'); } $key = strtolower($key); if (!isset($this->data[$key])) { $this->data[$key] = array(); } $this->data[$key][] = $value; }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_response_headers/offsetset