src/net/CurlResponse.php
public function getHeader ($name)
		{
			if (is_array($this->_headers))
			{
				foreach ($this->_headers as $header)
				{
					$data = explode(': ', $header);
					if (count($data) == 2 and $data[ 0 ] == $name)
						return $data[ 1 ];
				}
			}

			return null;
		}
public function getHeader ($name)
		{
			if (is_array($this->_headers))
			{
				foreach ($this->_headers as $header)
				{
					$data = explode(': ', $header);
					if (count($data) == 2 and $data[ 0 ] == $name)
						return $data[ 1 ];
				}
			}

			return null;
		}
public function getHeader ( $ name ) { if ( is_array ( $ this -> _headers ) ) { foreach ( $ this -> _headers as $ header ) { $ data = explode ( ': ' , $ header ) ; if ( count ( $ data ) == 2 and $ data [ 0 ] == $ name ) return $ data [ 1 ] ; } } return null ; }
Finds header by its name.
@param $name
@return null
Finds header by its name .