src/http/MessageTrait.php
public function getHeaderCollection()
    {
        if ($this->_headerCollection === null) {
            $headerCollection = new HeaderCollection();
            $headerCollection->fromArray($this->defaultHeaders());
            $this->_headerCollection = $headerCollection;
        }
        return $this->_headerCollection;
    }
public function getHeaderCollection()
    {
        if ($this->_headerCollection === null) {
            $headerCollection = new HeaderCollection();
            $headerCollection->fromArray($this->defaultHeaders());
            $this->_headerCollection = $headerCollection;
        }
        return $this->_headerCollection;
    }
public function getHeaderCollection ( ) { if ( $ this -> _headerCollection === null ) { $ headerCollection = new HeaderCollection ( ) ; $ headerCollection -> fromArray ( $ this -> defaultHeaders ( ) ) ; $ this -> _headerCollection = $ headerCollection ; } return $ this -> _headerCollection ; }
Returns the header collection.
The header collection contains the currently registered HTTP headers.
@return HeaderCollection the header collection
Returns the header collection . The header collection contains the currently registered HTTP headers .