public function send()
    {

        if (headers_sent()) {
            throw new HttpException(Response::STATUS_INTERNAL_SERVER_ERROR, 'Headers already send');
        }

        header($this->getStatusLine());

        foreach ($this->headers as $header) {
            header($header);
        }

        echo $this->body;
    }
public function send()
    {

        if (headers_sent()) {
            throw new HttpException(Response::STATUS_INTERNAL_SERVER_ERROR, 'Headers already send');
        }

        header($this->getStatusLine());

        foreach ($this->headers as $header) {
            header($header);
        }

        echo $this->body;
    }
public function send ( ) { if ( headers_sent ( ) ) { throw new HttpException ( Response :: STATUS_INTERNAL_SERVER_ERROR , 'Headers already send' ) ; } header ( $ this -> getStatusLine ( ) ) ; foreach ( $ this -> headers as $ header ) { header ( $ header ) ; } echo $ this -> body ; }
Sends the response to the web server

@return void
Sends the response to the web server