Adds or replaces a header value in the response headers.
@param string $name Header name
@param string $value Header value
@return $this Fluent interface
addHeader(string $name, string $value): selfRetrieves the value of a specific header.
@param string $name Header name
@return string Header value
getHeader(string $name): stringRetrieves all currently set headers.
@return array Array of headers as name => value pairs
getHeaders(): arrayChecks if a specific header exists.
@param string $name Header name
@return bool True if header exists, false otherwise
hasHeader(string $name): boolRemoves a specific header if it exists.
@param string $name Header name
@return $this Fluent interface
removeHeader(string $name): selfSets a given meta tag
@param string $type The type of the meta tag. Allowed values are property, name or http-equiv
@param string $name The name of the property to add
@param string $content The content of the meta tag
@param array $subProperties Subproperties of the meta tag (like e.g. og:image:width)
@param bool $replace Replace earlier set meta tag
@throws \InvalidArgumentException
addMetaTag(string $type, string $name, string $content, array $subProperties = [], $replace = true): selfAdds arbitrary data to the page header.
@param string $data Raw header data or HTML to add
@return $this Fluent interface
addHeaderData(string $data): selfRetrieves a meta tag by type and name.
@param string $type Meta tag type (e.g., 'name')
@param string $name Meta tag name
@return array Meta tag data array
getMetaTag(string $type, string $name): arrayRemoves a meta tag from the page renderer by type and name.
@param string $type Meta tag type (e.g., 'name')
@param string $name Meta tag name
@return $this Fluent interface
removeMetaTag(string $type, string $name): selfRemoves an entry from the import map.
@param string $key Key of the entry
@param int $moduleSpecifierKey The import map section to remove from (default: self::IMPORTMAP_IMPORTS)
@return bool True if the entry existed and was removed, false otherwise
protected function removeImportmapEntry(string $key, int $moduleSpecifierKey = self::IMPORTMAP_IMPORTS): boolSee: addImportmapEntry() for a full list of moduleSpecifierKey values.