protected function sendContent()
    {
        $illuminateResponse = $this->getIlluminateResponse();

        if ($illuminateResponse instanceof StreamedResponse && property_exists($illuminateResponse, 'output')) {
            // TODO Add Streamed Response with output
            $this->swooleResponse->end($illuminateResponse->output);
        } elseif ($illuminateResponse instanceof BinaryFileResponse) {
            $this->swooleResponse->sendfile($illuminateResponse->getFile()->getPathname());
        } else {
            $this->sendInChunk($illuminateResponse->getContent());
        }
    }
protected function sendContent()
    {
        $illuminateResponse = $this->getIlluminateResponse();

        if ($illuminateResponse instanceof StreamedResponse && property_exists($illuminateResponse, 'output')) {
            // TODO Add Streamed Response with output
            $this->swooleResponse->end($illuminateResponse->output);
        } elseif ($illuminateResponse instanceof BinaryFileResponse) {
            $this->swooleResponse->sendfile($illuminateResponse->getFile()->getPathname());
        } else {
            $this->sendInChunk($illuminateResponse->getContent());
        }
    }
protected function sendContent ( ) { $ illuminateResponse = $ this -> getIlluminateResponse ( ) ; if ( $ illuminateResponse instanceof StreamedResponse && property_exists ( $ illuminateResponse , 'output' ) ) { // TODO Add Streamed Response with output $ this -> swooleResponse -> end ( $ illuminateResponse -> output ) ; } elseif ( $ illuminateResponse instanceof BinaryFileResponse ) { $ this -> swooleResponse -> sendfile ( $ illuminateResponse -> getFile ( ) -> getPathname ( ) ) ; } else { $ this -> sendInChunk ( $ illuminateResponse -> getContent ( ) ) ; } }
Send HTTP content.
Send HTTP content .