HeaderBag

HeaderBag

class HeaderBag implements IteratorAggregate, Countable

HeaderBag is a container for HTTP headers.

Methods

__construct(array $headers = array())

Constructor.

string __toString()

Returns the headers as a string.

array all()

Returns the headers.

array keys()

Returns the parameter keys.

replace(array $header