Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -278,4 +278,15 @@ class _Response
|
||||
|
||||
return $queryString;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this response successful ? Was the statuscode between 200 and 300
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isSuccessful(): bool
|
||||
{
|
||||
/* Return if we have received a 2xx response code */
|
||||
return $this->httpResponseCode >= 200 && $this->httpResponseCode < 300;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user