You are here

public function HttpHeaderBagInterface::add in RESTful 7.2

Add a header to the bag.

Parameters

HttpHeaderInterface $header: The header object or an associative array with the name and value.

Throws

ServerConfigurationException

1 method overrides HttpHeaderBagInterface::add()
HttpHeaderBag::add in src/Http/HttpHeaderBag.php
Add a header to the bag.

File

src/Http/HttpHeaderBagInterface.php, line 51
Contains \Drupal\restful\Http\HttpHeaderBagInterface.

Class

HttpHeaderBagInterface

Namespace

Drupal\restful\Http

Code

public function add(HttpHeaderInterface $header);