WordPress\AiClient\Providers\Http\DTO
Response::hasHeader
Checks if the response has a header.
Method of the class: Response{}
No Hooks.
Returns
bool. True if the header exists, false otherwise.
Usage
$Response = new Response(); $Response->hasHeader( $name ): bool;
- $name(string) (required)
- The header name.
Changelog
| Since 0.1.0 | Introduced. |
Response::hasHeader() Response::hasHeader code WP 7.1.4
public function hasHeader(string $name): bool
{
return $this->headers->has($name);
}