server = $server; $this->setNode($this->server->node); return $this; } /** * Set the node model this request is stemming from. */ public function setNode(Node $node): static { $this->node = $node; return $this; } /** * Return an instance of the Guzzle HTTP Client to be used for requests. * * @param array $headers */ public function getHttpClient(array $headers = []): PendingRequest { Assert::isInstanceOf($this->node, Node::class); return Http::daemon($this->node, $headers); } }