src/ieu/Http/Response.php
public function sendHeaders()
	{
		// Early return if headers already have been send
		if (headers_sent()) {
			return $this;
		}

		foreach ($this->headers as $key => $value) {
			header(
				sprintf('%s: %s', $key, is_array($value) ? implode('; ', $value) : $value),
				true,
				$this->statusCode
			);
		}

		header(sprintf('%s %s %s',
			self::$protocolVersionMap[$this->protocolVersion],
			$this->statusCode,
			self::$statusCodeMap[$this->statusCode]
		));

		return $this;
	}
public function sendHeaders()
	{
		// Early return if headers already have been send
		if (headers_sent()) {
			return $this;
		}

		foreach ($this->headers as $key => $value) {
			header(
				sprintf('%s: %s', $key, is_array($value) ? implode('; ', $value) : $value),
				true,
				$this->statusCode
			);
		}

		header(sprintf('%s %s %s',
			self::$protocolVersionMap[$this->protocolVersion],
			$this->statusCode,
			self::$statusCodeMap[$this->statusCode]
		));

		return $this;
	}
public function sendHeaders ( ) { // Early return if headers already have been send
 if ( headers_sent ( ) ) { return $ this ; } foreach ( $ this -> headers as $ key => $ value ) { header ( sprintf ( '%s: %s' , $ key , is_array ( $ value ) ? implode ( '; ' , $ value ) : $ value ) , true , $ this -> statusCode ) ; } header ( sprintf ( '%s %s %s' , self :: $ protocolVersionMap [ $ this -> protocolVersion ] , $ this -> statusCode , self :: $ statusCodeMap [ $ this -> statusCode ] ) ) ; return $ this ; }
Sends the response headers to the client
if headers have not been send yet.

@return self
Sends the response headers to the client if headers have not been send yet .