Added __toString method to Response.
This commit is contained in:
@@ -177,4 +177,12 @@ class Response {
|
|||||||
return $this->status == 301 or $this->status == 302;
|
return $this->status == 301 or $this->status == 302;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the parsed content of the Response.
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return (string) $this->content;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user