Add ExportedSession and improve RPC client handling.

This commit is contained in:
netkas 2024-12-19 12:54:15 -05:00
parent 0b51b47859
commit 42ba7013f7
6 changed files with 469 additions and 236 deletions

View file

@ -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;
}
}