You are here

protected function HttpCache::pass in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/HttpCache/HttpCache.php \Symfony\Component\HttpKernel\HttpCache\HttpCache::pass()

Forwards the Request to the backend without storing the Response in the cache.

Parameters

Request $request A Request instance:

bool $catch Whether to process exceptions:

Return value

Response A Response instance

3 calls to HttpCache::pass()
HttpCache::handle in vendor/symfony/http-kernel/HttpCache/HttpCache.php
Handles a Request to convert it to a Response.
HttpCache::invalidate in vendor/symfony/http-kernel/HttpCache/HttpCache.php
Invalidates non-safe methods (like POST, PUT, and DELETE).
HttpCache::lookup in vendor/symfony/http-kernel/HttpCache/HttpCache.php
Lookups a Response from the cache for the given Request.

File

vendor/symfony/http-kernel/HttpCache/HttpCache.php, line 254

Class

HttpCache
Cache provides HTTP caching.

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

protected function pass(Request $request, $catch = false) {
  $this
    ->record($request, 'pass');
  return $this
    ->forward($request, $catch);
}