sendBody example

public function send()
    {
        // Turn off output buffering completely, even if php.ini output_buffering is not off         if (ENVIRONMENT !== 'testing') {
            while (ob_get_level() > 0) {
                ob_end_clean();
            }
        }

        $this->buildHeaders();
        $this->sendHeaders();
        $this->sendBody();

        return $this;
    }

    /** * set header for file download. * * @return void */
    public function buildHeaders()
    {
        

        // If we're enforcing a Content Security Policy,         // we need to give it a chance to build out it's headers.         if ($this->CSP->enabled()) {
            $this->CSP->finalize($this);
        } else {
            $this->body = str_replace(['{csp-style-nonce}', '{csp-script-nonce}'], '', $this->body ?? '');
        }

        $this->sendHeaders();
        $this->sendCookies();
        $this->sendBody();

        return $this;
    }

    /** * Sends the headers of this HTTP response to the browser. * * @return $this */
    public function sendHeaders()
    {
        
Home | Imprint | This part of the site doesn't use cookies.