Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HeaderBag.php

function HeaderBag::replace

Replaces the current HTTP headers by a new set.

2 calls to HeaderBag::replace()
ResponseHeaderBag::replace in vendor/symfony/http-foundation/ResponseHeaderBag.php
Replaces the current HTTP headers by a new set.
ResponseHeaderBag::replace in vendor/symfony/http-foundation/ResponseHeaderBag.php
Replaces the current HTTP headers by a new set.
1 method overrides HeaderBag::replace()
ResponseHeaderBag::replace in vendor/symfony/http-foundation/ResponseHeaderBag.php
Replaces the current HTTP headers by a new set.

File

vendor/symfony/http-foundation/HeaderBag.php, line 90

Class

HeaderBag
HeaderBag is a container for HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

public function replace(array $headers = []) : void {
    $this->headers = [];
    $this->add($headers);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal