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

        $this->charset = $charset;

        return $this;
    }
public function charset(string $charset): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->charset = $charset;

        return $this;
    }
编码设置.

@param string $charset

@return $this