The `hasHeader` method is a part of the PSR-7 standard for HTTP message interfaces in PHP. It is used to determine whether a specific header exists in the server request. The method takes a header name as its parameter and returns a boolean value indicating whether the header is present in the request or not. This method helps to check and handle specific headers in the server request for processing and manipulation.
PHP Psr\Http\Message ServerRequestInterface::hasHeader - 30 examples found. These are the top rated real world PHP examples of Psr\Http\Message\ServerRequestInterface::hasHeader extracted from open source projects. You can rate examples to help us improve the quality of examples.