Headers
class Headers implements Countable, IteratorAggregate
Headers.
Properties
protected array | $headers | Headers. |
Methods
int
count()
Returns the numner of headers.
getIterator()
Retruns an array iterator object.
string
normalizeName(string $name)
Normalizes header names.
bool
has(string $name)
Returns TRUE if the header exists and FALSE if not.
bool
hasValue(string $name, string $value, bool $caseSensitive = true)
Return TRUE if the header has the value and FALSE if not.
array
all()
Returns all the headers.
Details
at line 40
int
count()
Returns the numner of headers.
at line 50
ArrayIterator
getIterator()
Retruns an array iterator object.
at line 61
protected string
normalizeName(string $name)
Normalizes header names.
at line 74
Headers
add(string $name, string $value, bool $replace = true)
Adds a response header.
at line 100
bool
has(string $name)
Returns TRUE if the header exists and FALSE if not.
at line 113
bool
hasValue(string $name, string $value, bool $caseSensitive = true)
Return TRUE if the header has the value and FALSE if not.
at line 134
Headers
remove(string $name)
Removes a header.
at line 146
Headers
clear()
Clears all the headers.
at line 158
array
all()
Returns all the headers.