Laravoole\Response::end PHP Method

end() public method

public end ( $content )
    public function end($content)
    {
        if ($this->gzip_level) {
            $content = gzencode($content, $this->gzip_level);
            $this->header('Content-Encoding', 'gzip');
        }
        $this->header('Content-Length', strlen($content));
        $out = $this->getHeader(true);
        $out .= $content;
        $protocol = $this->protocol;
        $protocol->response($this->request, $out);
    }