public function send() { if (is_null($this->getBody())) { $body = null; } else { $body = new Body(); $body->append($this->getBody()); } $request = new Request($this->getMethod(), 'https://' . $this->getUrl(), $this->getHeaders(), $body); $request->addQuery($this->getQuery()); $client = new Client(); $client->enqueue($request)->send(); $this->response = $client->getResponse(); }