/** * * {@inheritDoc} * * @see \Nia\RequestResponse\Http\HttpRequestInterface::isXmlHttpRequest() */ public function isXmlHttpRequest() : bool { return $this->header->tryGet('X-Requested-With', '') === 'XMLHttpRequest'; }
/** * * {@inheritDoc} * * @see \Nia\Collection\Map\StringMap\MapInterface::tryGet($name, $default) */ public function tryGet(string $name, string $default) : string { return $this->map->tryGet($name, $default); }