You are here

public function ReverseProxyMiddleware::handle in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php \Drupal\Core\StackMiddleware\ReverseProxyMiddleware::handle()

File

core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php, line 44

Class

ReverseProxyMiddleware
Provides support for reverse proxies.

Namespace

Drupal\Core\StackMiddleware

Code

public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {

  // Initialize proxy settings.
  static::setSettingsOnRequest($request, $this->settings);
  return $this->httpKernel
    ->handle($request, $type, $catch);
}