function ContentLength::__construct

Constructs a new ContentLength instance.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $httpKernel: The wrapped HTTP kernel.

File

core/lib/Drupal/Core/StackMiddleware/ContentLength.php, line 20

Class

ContentLength
Adds a Content-Length HTTP header to responses.

Namespace

Drupal\Core\StackMiddleware

Code

public function __construct(protected readonly HttpKernelInterface $httpKernel) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.