Add ExportedSession and improve RPC client handling.
This commit is contained in:
parent
0b51b47859
commit
42ba7013f7
6 changed files with 469 additions and 236 deletions
|
@ -215,4 +215,15 @@ class Utilities
|
|||
{
|
||||
return explode(',', $list);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the given HTTP response code indicates success or failure.
|
||||
*
|
||||
* @param int $responseCode The HTTP response code to check.
|
||||
* @return bool True if the response code indicates success, false otherwise.
|
||||
*/
|
||||
public static function isSuccessCodes(int $responseCode): bool
|
||||
{
|
||||
return $responseCode >= 200 && $responseCode < 300;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue