src/Leevel/Http/Response.php
public function setContentLength(int $contentLength): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->setHeader('Content-Length', (string) $contentLength);

        return $this;
    }
public function setContentLength(int $contentLength): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->setHeader('Content-Length', (string) $contentLength);

        return $this;
    }
设置响应内容长度.

@param int $contentLength

@return $this