You are here

public function BrowserHeadersTrait::addHeader in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserHeadersTrait.php \Zumba\GastonJS\Browser\BrowserHeadersTrait::addHeader()

Adds a header to the page making it permanent if needed

Parameters

$header:

$permanent:

Return value

mixed

File

vendor/jcalderonzumba/gastonjs/src/Browser/BrowserHeadersTrait.php, line 42

Class

BrowserHeadersTrait
Trait BrowserHeadersTrait @package Zumba\GastonJS\Browser

Namespace

Zumba\GastonJS\Browser

Code

public function addHeader($header, $permanent = false) {
  return $this
    ->command('add_header', $header, $permanent);
}