This documentation describes unreleased changes on the main branch.

HeaderVary

Class. It implements CacheVary.

use Saij\WpAppFramework\Cache\Vary\HeaderVary;

A header of the request, e.g. Accept-Language; a missing header differs from an empty one.

Constructor

new HeaderVary(string $name)
ParameterTypeDefaultDescription
namestringrequiredThe name of the header, not empty, e.g. Accept-Language; case does not matter.

Methods

getName()

getName(): string

The name as given to the constructor.

Returns string