AbstractSurrogate
abstract class AbstractSurrogate implements SurrogateInterface
Abstract class implementing Surrogate capabilities to Request and Response instances.
Properties
protected | $contentTypes | ||
protected | $phpEscapeMap |
Methods
__construct(array $contentTypes = array('text/html', 'text/xml', 'application/xhtml+xml', 'application/xml'))
No description
createCacheStrategy()
Returns a new cache strategy instance.
bool
hasSurrogateCapability(Request $request)
Checks that at least one surrogate has Surrogate capability.
bool
string
Details
__construct(array $contentTypes = array('text/html', 'text/xml', 'application/xhtml+xml', 'application/xml'))
bool
hasSurrogateCapability(Request $request)
Checks that at least one surrogate has Surrogate capability.
bool
needsParsing(Response $response)
Checks that the Response needs to be parsed for Surrogate tags.
string
handle(HttpCache $cache, string $uri, string $alt, bool $ignoreErrors)
Handles a Surrogate from the cache.
protected
removeFromControl(Response $response)
Remove the Surrogate from the Surrogate-Control header.