Symfony\Component\HttpFoundation\HeaderBag::set
Sets a header by name.
Signature
public function set(string
$key,
[string|array
$values = true,
[Boolean
$replace = true]] )
Parameters
$key
— string- The key
$values
— object- The value or an array of values
$replace
— object- Whether to replace the actual value or not (true by default)