public function getHeaders($name = NULL)
	{
		if($name === NULL)
		{
			return $this->headers;
		}
		
		$n = strtolower($name);
		
		if(empty($this->headers[$n]))
		{
			return [];
		}
		
		$headers = [];
		
		foreach($this->headers[$n] as $data)
		{
			$headers[] = $data;
		}
		
		return $headers;
	}
public function getHeaders($name = NULL)
	{
		if($name === NULL)
		{
			return $this->headers;
		}
		
		$n = strtolower($name);
		
		if(empty($this->headers[$n]))
		{
			return [];
		}
		
		$headers = [];
		
		foreach($this->headers[$n] as $data)
		{
			$headers[] = $data;
		}
		
		return $headers;
	}
public function getHeaders ( $ name = NULL ) { if ( $ name === NULL ) { return $ this -> headers ; } $ n = strtolower ( $ name ) ; if ( empty ( $ this -> headers [ $ n ] ) ) { return [ ] ; } $ headers = [ ] ; foreach ( $ this -> headers [ $ n ] as $ data ) { $ headers [ ] = $ data ; } return $ headers ; }
Get all HTTP headers of this message.

@param string $name
@return array
Get all HTTP headers of this message .