You are here

public function HeaderBag::getIterator in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/HeaderBag.php \Symfony\Component\HttpFoundation\HeaderBag::getIterator()

Returns an iterator for headers.

Return value

\ArrayIterator An \ArrayIterator instance

File

vendor/symfony/http-foundation/HeaderBag.php, line 273

Class

HeaderBag
HeaderBag is a container for HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

public function getIterator() {
  return new \ArrayIterator($this->headers);
}