src/DdvRestfulApi/Lib/HttpRequestStream.php
public function onRequested(Closure $fn)
    {
        if (isset($this->hookRequesteds) && !is_array($this->hookRequesteds)) {
            $this->hookRequesteds = [];
        }
        $this->hookRequesteds[] = $fn;
    }
public function onRequested(Closure $fn)
    {
        if (isset($this->hookRequesteds) && !is_array($this->hookRequesteds)) {
            $this->hookRequesteds = [];
        }
        $this->hookRequesteds[] = $fn;
    }
触发重置，注意，完成触发后会马上重置，迎接下一次请求
@param Closure $fn