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
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
Namespace
Drupal\restful\HttpCode
public function add(HttpHeaderInterface $header);