src/Http/Router.php
protected function forward(string $name, bool $pipe = false) {
        parent::forward($name);
        $remote = $this->connection->remotes[$name];
        $remote->pipe($this->connection);
        if ($pipe)
            $this->connection->pipe($remote);
        else
            $this->connection->onClose = function () use ($remote) {
                $remote->close();
            };
        $remote->connect();
        $remote->send($this->requestData);
    }
protected function forward(string $name, bool $pipe = false) {
        parent::forward($name);
        $remote = $this->connection->remotes[$name];
        $remote->pipe($this->connection);
        if ($pipe)
            $this->connection->pipe($remote);
        else
            $this->connection->onClose = function () use ($remote) {
                $remote->close();
            };
        $remote->connect();
        $remote->send($this->requestData);
    }
转发HTTP请求

@param string $name
@param bool $pipe