/** * * {@inheritDoc} * * @see \Nia\RequestResponse\Http\HttpRequestInterface::isXmlHttpRequest() */ public function isXmlHttpRequest() : bool { return $this->header->tryGet('X-Requested-With', '') === 'XMLHttpRequest'; }
/** * * {@inheritDoc} * * @see \IteratorAggregate::getIterator() */ public function getIterator() : Iterator { return $this->map->getIterator(); }