headerProviders = $headerProviderList; } /** * @param \Magento\Framework\App\Response\Http $subject * @return void * @codeCoverageIgnore */ public function beforeSendResponse(\Magento\Framework\App\Response\Http $subject) { foreach ($this->headerProviders as $provider) { if ($provider->canApply()) { $subject->setHeader($provider->getName(), $provider->getValue()); } } } }