You are here

public function BrowserHeadersTrait::setHeaders 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::setHeaders()

Given an array of headers, set such headers for the requests, removing all others

Parameters

array $headers:

Return value

mixed

File

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

Class

BrowserHeadersTrait
Trait BrowserHeadersTrait @package Zumba\GastonJS\Browser

Namespace

Zumba\GastonJS\Browser

Code

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