gear/Network/Response.php
/**
     * Sends a HTTP response.
     *
     * @return void
     */
Sends a HTTP response.
@return void
Sends a HTTP response . @return void
public function send()
    {
        if (ob_get_length() > 0) {
            ob_end_clean();
        }
        if (!headers_sent()) {
            $this->sendHeaders();
        }
        echo $this->body;
    }
public function send ( ) { if ( ob_get_length ( ) > 0 ) { ob_end_clean ( ) ; } if ( ! headers_sent ( ) ) { $ this -> sendHeaders ( ) ; } echo $ this -> body ; }
Sends a HTTP response.
Sends a HTTP response .