public function content() { if (!$this->prepared) { $this->prepare(); } return $this->content; }
/** * Returns the response as json. * * @return mixed */ public function asJson() { if (!$this->isJsonMessage($this->response->headers)) { throw new \RuntimeException('The response is not a valid json response'); } return json_decode($this->response->content(), true); }