src/Leevel/Http/JsonResponse.php
public function setEncodingOptions(int $encodingOptions): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->encodingOptions = (int) $encodingOptions;

        return $this->setData($this->getData());
    }
public function setEncodingOptions(int $encodingOptions): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->encodingOptions = (int) $encodingOptions;

        return $this->setData($this->getData());
    }
设置编码参数.

@param int $encodingOptions

@return $this