3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Http\Header
;
13 * Interface for HTTP Header classes.
15 interface HeaderInterface
18 * Factory to generate a header object from a string
20 * @param string $headerLine
22 * @throws Exception\InvalidArgumentException If the header does not match RFC 2616 definition.
23 * @see http://tools.ietf.org/html/rfc2616#section-4.2
25 public static function fromString($headerLine);
28 * Retrieve header name
32 public function getFieldName();
35 * Retrieve header value
39 public function getFieldValue();
44 * Returns in form of "NAME: VALUE"
48 public function toString();