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