src/Web.php
function send($contents, $status = 200, array $headers = null) {

		$this->http_response_code($status);

		if ($headers !== null) {
			foreach ($headers as $header) {
				$this->header($header[0], $header[1], $header[2]);
			}
		}

		if ( ! empty($contents)) {
			echo $contents;
		}
	}
function send($contents, $status = 200, array $headers = null) {

		$this->http_response_code($status);

		if ($headers !== null) {
			foreach ($headers as $header) {
				$this->header($header[0], $header[1], $header[2]);
			}
		}

		if ( ! empty($contents)) {
			echo $contents;
		}
	}
function send ( $ contents , $ status = 200 , array $ headers = null ) { $ this -> http_response_code ( $ status ) ; if ( $ headers !== null ) { foreach ( $ headers as $ header ) { $ this -> header ( $ header [ 0 ] , $ header [ 1 ] , $ header [ 2 ] ) ; } } if ( ! empty ( $ contents ) ) { echo $ contents ; } }
Sent content to the client.
Sent content to the client .