public function HttpHeaderBag::has in RESTful 7.2
Checks the existence of a header in the bag.
Parameters
string $key: The header ID or header name.
Return value
bool TRUE if the header is present. FALSE otherwise.
Overrides HttpHeaderBagInterface::has
1 call to HttpHeaderBag::has()
- HttpHeaderBag::append in src/
Http/ HttpHeaderBag.php - Appends the values of the passed in header to if the header already exists.
File
- src/
Http/ HttpHeaderBag.php, line 68 - Contains \Drupal\restful\Http\HttpHeaderBag.
Class
Namespace
Drupal\restful\HttpCode
public function has($key) {
return !empty($this->values[$key]);
}