content = $content; $this->headers = $headers; } function getContent() { return $this->content; } function getHeaders() { return $this->headers; } /** * Query the response for a JQuery compatible CSS selector * * @link https://code.google.com/p/phpquery/wiki/Selectors * @param string selector * @returns object a PHPQuery object */ function queryHTML($selector){ if(is_null($this->pq)) $this->pq = phpQuery::newDocument($this->content); return $this->pq->find($selector); } }