fuel/fuel/core/classes/response.php
public function send_headers()
	{
		if ( ! headers_sent())
		{
			// Send the protocol/status line first, FCGI servers need different status header
			if ( ! empty($_SERVER['FCGI_SERVER_VERSION']))
			{
				header('Status: '.$this->status.' '.static::$statuses[$this->status]);
			}
			else
			{
				$protocol = \Input::server('SERVER_PROTOCOL') ? \Input::server('SERVER_PROTOCOL') : 'HTTP/1.1';
				header($protocol.' '.$this->status.' '.static::$statuses[$this->status]);
			}

			foreach ($this->headers as $name => $value)
			{
				// Parse non-replace headers
				if (is_int($name) and is_array($value))
				{
					 isset($value[0]) and $name = $value[0];
					 isset($value[1]) and $value = $value[1];
				}

				// Create the header
				is_string($name) and $value = "{$name}: {$value}";

				// Send it
				header($value, true);
			}
			return true;
		}
		return false;
	}
public function send_headers()
	{
		if ( ! headers_sent())
		{
			// Send the protocol/status line first, FCGI servers need different status header
			if ( ! empty($_SERVER['FCGI_SERVER_VERSION']))
			{
				header('Status: '.$this->status.' '.static::$statuses[$this->status]);
			}
			else
			{
				$protocol = \Input::server('SERVER_PROTOCOL') ? \Input::server('SERVER_PROTOCOL') : 'HTTP/1.1';
				header($protocol.' '.$this->status.' '.static::$statuses[$this->status]);
			}

			foreach ($this->headers as $name => $value)
			{
				// Parse non-replace headers
				if (is_int($name) and is_array($value))
				{
					 isset($value[0]) and $name = $value[0];
					 isset($value[1]) and $value = $value[1];
				}

				// Create the header
				is_string($name) and $value = "{$name}: {$value}";

				// Send it
				header($value, true);
			}
			return true;
		}
		return false;
	}
public function send_headers ( ) { if ( ! headers_sent ( ) ) { // Send the protocol/status line first, FCGI servers need different status header if ( ! empty ( $ _SERVER [ 'FCGI_SERVER_VERSION' ] ) ) { header ( 'Status: ' . $ this -> status . ' ' . static :: $ statuses [ $ this -> status ] ) ; } else { $ protocol = \ Input :: server ( 'SERVER_PROTOCOL' ) ? \ Input :: server ( 'SERVER_PROTOCOL' ) : 'HTTP/1.1' ; header ( $ protocol . ' ' . $ this -> status . ' ' . static :: $ statuses [ $ this -> status ] ) ; } foreach ( $ this -> headers as $ name => $ value ) { // Parse non-replace headers if ( is_int ( $ name ) and is_array ( $ value ) ) { isset ( $ value [ 0 ] ) and $ name = $ value [ 0 ] ; isset ( $ value [ 1 ] ) and $ value = $ value [ 1 ] ; } // Create the header is_string ( $ name ) and $ value = "{$name}: {$value}" ; // Send it header ( $ value , true ) ; } return true ; } return false ; }
Sends the headers if they haven't already been sent.  Returns whether
they were sent or not.

@return  bool
Sends the headers if they haven t already been sent . Returns whether they were sent or not .