public function getHeaders()
    {
        if ($this->_headers === null) {
            $this->_headers = new HeaderCollection();
            foreach ($this->swooleRequest->server as $name => $value) {
                if (strncmp($name, 'HTTP_', 5) === 0) {
                    $name = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))));
                    $this->_headers->add($name, $value);
                }
            }
        }
        return $this->_headers;
    }
public function getHeaders()
    {
        if ($this->_headers === null) {
            $this->_headers = new HeaderCollection();
            foreach ($this->swooleRequest->server as $name => $value) {
                if (strncmp($name, 'HTTP_', 5) === 0) {
                    $name = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))));
                    $this->_headers->add($name, $value);
                }
            }
        }
        return $this->_headers;
    }
public function getHeaders ( ) { if ( $ this -> _headers === null ) { $ this -> _headers = new HeaderCollection ( ) ; foreach ( $ this -> swooleRequest -> server as $ name => $ value ) { if ( strncmp ( $ name , 'HTTP_' , 5 ) === 0 ) { $ name = str_replace ( ' ' , '-' , ucwords ( strtolower ( str_replace ( '_' , ' ' , substr ( $ name , 5 ) ) ) ) ) ; $ this -> _headers -> add ( $ name , $ value ) ; } } } return $ this -> _headers ; }
Returns the header collection.
The header collection contains incoming HTTP headers.
@return HeaderCollection the header collection
Returns the header collection . The header collection contains incoming HTTP headers .