WordPress\AiClient\Providers\Http\Collections
HeadersCollection::has
Checks if a header exists.
Method of the class: HeadersCollection{}
No Hooks.
Returns
true|false. True if the header exists, false otherwise.
Usage
$HeadersCollection = new HeadersCollection(); $HeadersCollection->has( $name ): bool;
- $name(string) (required)
- The header name (case-insensitive).
Changelog
| Since 0.1.0 | Introduced. |
HeadersCollection::has() HeadersCollection::has code WP 7.0
public function has(string $name): bool
{
return isset($this->headersMap[strtolower($name)]);
}