annotate vendor/zendframework/zend-feed/src/Reader/Http/HeaderAwareResponseInterface.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 <?php
Chris@0 2 /**
Chris@0 3 * Zend Framework (http://framework.zend.com/)
Chris@0 4 *
Chris@0 5 * @link http://github.com/zendframework/zf2 for the canonical source repository
Chris@0 6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
Chris@0 7 * @license http://framework.zend.com/license/new-bsd New BSD License
Chris@0 8 */
Chris@0 9
Chris@0 10 namespace Zend\Feed\Reader\Http;
Chris@0 11
Chris@0 12 interface HeaderAwareResponseInterface extends ResponseInterface
Chris@0 13 {
Chris@0 14 /**
Chris@0 15 * Retrieve a header (as a single line) from the response.
Chris@0 16 *
Chris@0 17 * Header name lookups MUST be case insensitive.
Chris@0 18 *
Chris@0 19 * Since the only header values the feed reader consumes are singular
Chris@0 20 * in nature, this method is expected to return a string, and not
Chris@0 21 * an array of values.
Chris@0 22 *
Chris@0 23 * @param string $name Header name to retrieve.
Chris@0 24 * @param mixed $default Default value to use if header is not present.
Chris@0 25 * @return string
Chris@0 26 */
Chris@0 27 public function getHeaderLine($name, $default = null);
Chris@0 28 }