You are here

public function BrowserHeadersTrait::addHeaders in Zircon Profile 8

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

Adds headers to current page overriding the existing ones for the next requests

Parameters

$headers:

Return value

mixed

File

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

Class

BrowserHeadersTrait
Trait BrowserHeadersTrait @package Zumba\GastonJS\Browser

Namespace

Zumba\GastonJS\Browser

Code

public function addHeaders($headers) {
  return $this
    ->command('add_headers', $headers);
}