Core Class
View Source on Trac ↗
Core Class
Headers
class Headers
// Constructor: function Object() { [native code] } Case-insensitive dictionary, suitable for HTTP headers
Methods 5 methods
| Method / Return | Description |
|---|---|
| offsetGet() (string | Get the given header
Parameters: $offset: mixed |
| offsetSet() void | Set the given item
Parameters: $offset: mixed, $value: mixed |
| getValues() (array | Get all values for a given header
Parameters: $offset: mixed |
| flatten() string | Flattens a value into a string
Parameters: $value: mixed |
| getIterator() \ArrayIterator | Get an iterator for the data |
Class Information
Source File
wp-includes/Requests/src/Response/Headers.php
Advertisement