Http/Response.php
public function send($protocol = null)
    {
        // Clean up any open buffers
        if (ob_get_length() > 0) {
            ob_end_clean();
        }

        // Send the status code and headers
        if (!headers_sent())
            $this->sendStatus($protocol)->sendHeaders();

        // Send the body
        echo $this->_body;

        // Kill the script
        exit;

    }
public function send($protocol = null)
    {
        // Clean up any open buffers
        if (ob_get_length() > 0) {
            ob_end_clean();
        }

        // Send the status code and headers
        if (!headers_sent())
            $this->sendStatus($protocol)->sendHeaders();

        // Send the body
        echo $this->_body;

        // Kill the script
        exit;

    }
public function send ( $ protocol = null ) { // Clean up any open buffers if ( ob_get_length ( ) > 0 ) { ob_end_clean ( ) ; } // Send the status code and headers if ( ! headers_sent ( ) ) $ this -> sendStatus ( $ protocol ) -> sendHeaders ( ) ; // Send the body echo $ this -> _body ; // Kill the script exit ; }
Sends the response and ends the application.

@param string|null $protocol
Sends the response and ends the application .