src/Leevel/Http/Request.php
public function getContent(): string
    {
        $resources = is_resource($this->content);

        if ($resources) {
            rewind($this->content);

            return stream_get_contents($this->content);
        }

        if (null === $this->content) {
            $this->content = file_get_contents('php://input');
        }

        return $this->content;
    }
public function getContent(): string
    {
        $resources = is_resource($this->content);

        if ($resources) {
            rewind($this->content);

            return stream_get_contents($this->content);
        }

        if (null === $this->content) {
            $this->content = file_get_contents('php://input');
        }

        return $this->content;
    }
取得请求内容.

@return string