src/Http.php
public function decode($func = null, $is_clear = false) {
        if ($is_clear) {
            $this->decodeFunc = [];
        }
        $this->decodeFunc[] = $func;
        return $this;
    }
public function decode($func = null, $is_clear = false) {
        if ($is_clear) {
            $this->decodeFunc = [];
        }
        $this->decodeFunc[] = $func;
        return $this;
    }
解码相应内容
@param null $func
@param bool $is_clear  清空原有的
@return $this