PSR-7 that should implement the method?

/**
 * Checks if a header exists by the given case-insensitive name.
*
 * @param string $name Case-insensitive header field name.
 * @return bool Returns true if any header names match the given header
 * name using a case-insensitive string comparison. Returns false if
 * no matching header name is found in the message.
*/
 public function hasHeader($name);

As I understand it, the method checks to see whether the title is exposed, and the validity of the header name. Is it really so?
July 8th 19 at 11:23
1 answer
July 8th 19 at 11:25
Checks if a header exists by the given case-insensitive name.


Checks for header name is case insensitive.

the method checks to see whether the title is exposed, and the validity of the header name. Is it really so?


Probably not)

Find more questions by tags PHP