while upgrading our codebase for 9.5 i just found the old approach with using
$res = $this->response;
$res->addAdditionalHeaderData('<script src="' . $scriptPath . '" type="text/javascript"></script>');
this all happens inside an extension controller extending ActionController, the methods seem not to exist anymore and i cant find the new way of implementing that functionality. so how can i add additional header data inside my action controller from my extbase extension?
help is much appreciated