Set the shared header of the JWE to build.

@return JWEBuilder
188751
public function withSharedHeader(array $sharedHeader): self
    {
        $this->checkDuplicatedHeaderParameters($this->sharedProtectedHeader, $sharedHeader);
        foreach ($this->recipients as $recipient) {
            $this->checkDuplicatedHeaderParameters($sharedHeader, $recipient->getHeader());
        }
        $clone = clone $this;
        $clone->sharedHeader = $sharedHeader;

        return $clone;
    }
1119185
protected function sendHeaders()
    {
        $headers = $this->getHeaders();

        foreach ($headers as $header) {
            header($header);
        }
        return $this;
    }
1180967
protected function addHeaders()
    {
        if (empty($this->headers)) {
            return $this;
        }

        $this->options[CURLOPT_HTTPHEADER] = $this->headers;
        return $this;
    }
959478
protected function prefillHeader()
    {
        if ($this->requiresAuthorization() && !empty($this->getAuthorizationHeader())) {
            $this->headers['Authorization'] = $this->getAuthorizationHeader();
        }
        return $this;
    }
248443
public function sendHeaders()
	{
		// headers have already been sent by the developer
		if (headers_sent()) {
			return $this;
		}

		// status
		header(sprintf('HTTP/%s %s %s', $this->version, $this->statusCode, $this->statusText), true, $this->statusCode);

		// headers
		foreach ($this->headers as $name => $values) {
			if (is_array($values))
			{
				foreach ($values as $value)
				{
					header($name . ': ' . $value, false, $this->statusCode);
				}
			}
			else
			{
				header($name . ': ' . $values, false, $this->statusCode);
			}
		}

		return $this;
	}
193604
private function gridHeaderBuild() {
        $html = '<thead class="table-header">' . self::$phpEOL;

        $html .= $this->gridHeaderLabel();
        if ($this->searchEnable) {
            $html .= $this->gridHeaderSearch();
        }

        $html .= '</thead>' . self::$phpEOL;

        return $html;
    }
993778
public function build(): SetRuleSelectorRequest
	{
		$instance = new SetRuleSelectorRequest();
		if ($this->styleSheetId === null) {
			throw new BuilderException('Property [styleSheetId] is required.');
		}
		$instance->styleSheetId = $this->styleSheetId;
		if ($this->range === null) {
			throw new BuilderException('Property [range] is required.');
		}
		$instance->range = $this->range;
		if ($this->selector === null) {
			throw new BuilderException('Property [selector] is required.');
		}
		$instance->selector = $this->selector;
		return $instance;
	}
1330361
public function createMultiSchemeHeader()
    {
        $headers = [];
        foreach ($this->schemes as $name => $scheme) {
            $headers[$name] = $scheme->createResponseHeaderValue();
        }

        return new HttpHeader(
            $this->schemeHeader,
            sprintf('%s %s', implode('|', array_keys($headers)), implode('|', array_values($headers)))
        );
    }
1315084
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

        foreach ($this->children as $child_widget) {
            $set->addEntrySet($child_widget->getHtmlHeadEntrySet());
        }

        return $set;
    }
864690
public function getAvailableHtmlHeadEntrySet()
    {
        $set = new SwatHtmlHeadEntrySet($this->html_head_entry_set);

        foreach ($this->getCompositeWidgets() as $widget) {
            $set->addEntrySet($widget->getAvailableHtmlHeadEntrySet());
        }

        return $set;
    }
640246
protected function buildVariableHeader()
    {
        $buffer = "";
        $buffer .= chr($this->session_present);
        $buffer .= chr($this->return_code);
        return $buffer;
    }
1357157
public function build(): SetBypassCSPRequest
	{
		$instance = new SetBypassCSPRequest();
		if ($this->enabled === null) {
			throw new BuilderException('Property [enabled] is required.');
		}
		$instance->enabled = $this->enabled;
		return $instance;
	}
1374047
public function setFrameAncestorsHeader()
    {
        /** @var SettingsStorage $settingsStorage */
        $settingsStorage = $this->getServiceLocator()->get(SettingsStorage::SERVICE_ID);
        $whitelistedSources = $settingsStorage->get(CspHeaderSettingsInterface::CSP_HEADER_SETTING);

        if ($whitelistedSources === null) {
            $whitelistedSources = ["'none'"];
        }

        // Wrap directives in quotes
        if (in_array($whitelistedSources, ['self', 'none'])) {
            $whitelistedSources = ["'" . $whitelistedSources . "'"];
        }

        if ($whitelistedSources === 'list') {
            $whitelistedSources = json_decode($settingsStorage->get(CspHeaderSettingsInterface::CSP_HEADER_LIST), true);
        }

        if (!is_array($whitelistedSources)) {
            $whitelistedSources = [$whitelistedSources];
        }

        header(sprintf(
            'Content-Security-Policy: frame-ancestors %s',
            implode(' ', $whitelistedSources)
        ));
    }
417474
public function getHtmlHeadEntrySet()
    {
        $this->createEmbeddedWidgets();

        $set = parent::getHtmlHeadEntrySet();
        $set->addEntrySet($this->check_all->getHtmlHeadEntrySet());

        return $set;
    }
747640
public function set()
    {
        try {
            $this->loadEnv();
            $this->setPhpIni(getenv('WP_ENV') ?: 'development');
            $this->setConfig(getenv('WP_ENV') ?: 'development');
            $this->registerMuLoaderLoader();
            $this->registerMultiSitePath();
        } catch (\RuntimeException $e) {
            die('<h1>Configuration could not be loaded.</h1>');
        }
        return $this;
    }
1168328
public function setDefaultFromHttp()
    {
        $http_locale = $this->getHttpHeaderLocale();
        if (!empty($http_locale) && $this->isAvailableLanguage($http_locale)) {
            $this->setLanguage($http_locale);
        }
        return $this;
    }
1015081
public function header()
    {
        $this->SetY(4);
        
        $this->MultiCell(50, 0, '<img src="' . $this->logoPath . '">', 0, 'L', 0, 0, '', '', true, null, true);
        $this->setFontSize(10);
        
        $convertedHeaderRight = '<br />'.Configure::read('appDb.FCS_APP_NAME').'<br />'.Configure::read('appDb.FCS_APP_ADDRESS').'<br />'.Configure::read('appDb.FCS_APP_EMAIL');
        $convertedHeaderRight = Configure::read('app.htmlHelper')->prepareDbTextForPDF($convertedHeaderRight);
        
        // add additional line break on top if short address
        $lineCount = substr_count($convertedHeaderRight, "\n");
        if ($lineCount < 5) {
            $convertedHeaderRight = "\n" . $convertedHeaderRight;
        }
        
        $this->headerRight = $convertedHeaderRight;
        
        $this->MultiCell(145 - $this->lMargin, 0, $this->headerRight, 0, 'R', 0, 1, '', '', true);
        
        $this->SetY(36);
        $this->drawLine();
    }