Checks if the response has a header.
Parameters
$namestringrequired- The header name.
Source
public function hasHeader(string $name): bool
{
return $this->headers->has($name);
}
Changelog
| Version | Description |
|---|---|
| 0.1.0 | Introduced. |
Checks if the response has a header.
$namestringrequiredpublic function hasHeader(string $name): bool
{
return $this->headers->has($name);
}
| Version | Description |
|---|---|
| 0.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.