public function getHeaders()
    {
        $headerFields = array_keys($this->headers);
        
        $result = array();
        foreach ($headerFields as $field) {
            $result[] = sprintf('%s: %s', $field, $this->getHeader($field));
        }
        
        return $result;
    }
public function getHeaders()
    {
        $headerFields = array_keys($this->headers);
        
        $result = array();
        foreach ($headerFields as $field) {
            $result[] = sprintf('%s: %s', $field, $this->getHeader($field));
        }
        
        return $result;
    }
public function getHeaders ( ) { $ headerFields = array_keys ( $ this -> headers ) ; $ result = array ( ) ; foreach ( $ headerFields as $ field ) { $ result [ ] = sprintf ( '%s: %s' , $ field , $ this -> getHeader ( $ field ) ) ; } return $ result ; }
Return the HTTP header

@return array
Return the HTTP header