/** * @return void */ public function next() { $this->load(); if ($url = static::parseLink($this->response->getHeader('Link'), 'next')) { $this->request = new Http\Request($this->request->getMethod(), $url, $this->request->getHeaders(), $this->request->getContent()); } else { $this->request = NULL; } $this->response = NULL; $this->counter++; }