src/mako/http/response/senders/Stream.php
public function flush(?string $chunk, bool $flushEmpty = false): void
	{
		if($this->isCGI)
		{
			if(!empty($chunk))
			{
				echo $chunk;

				flush();
			}
		}
		else
		{
			if(!empty($chunk) || $flushEmpty === true)
			{
				printf("%x\r\n%s\r\n", strlen($chunk), $chunk);

				flush();
			}
		}
	}
public function flush(?string $chunk, bool $flushEmpty = false): void
	{
		if($this->isCGI)
		{
			if(!empty($chunk))
			{
				echo $chunk;

				flush();
			}
		}
		else
		{
			if(!empty($chunk) || $flushEmpty === true)
			{
				printf("%x\r\n%s\r\n", strlen($chunk), $chunk);

				flush();
			}
		}
	}
public function flush ( ? string $ chunk , bool $ flushEmpty = false ) : void { if ( $ this -> isCGI ) { if ( ! empty ( $ chunk ) ) { echo $ chunk ; flush ( ) ; } } else { if ( ! empty ( $ chunk ) || $ flushEmpty === true ) { printf ( "%x\r\n%s\r\n" , strlen ( $ chunk ) , $ chunk ) ; flush ( ) ; } } }
Flushes a chunck of data.

@param string|null $chunk      Chunck of data to flush
@param bool        $flushEmpty Flush empty chunk?
Flushes a chunck of data .