Symfony\Component\HttpFoundation\Response::setVary
Sets the Vary header.
Signature
public function setVary(string|array
$headers,
[Boolean
$replace = true] )
Parameters
$headers
— object
$replace
— object- Whether to replace the actual value of not (true by default)
Returns
- Response