文件名称:http-status-in-range:PHP函数检查http状态是否在范围内
文件大小:1KB
文件格式:ZIP
更新时间:2024-05-29 07:05:10
PHP
HTTP状态范围检查器 composer require frankdejonge/http-status-in-range <?php use function FrankDeJonge \ HttpStatusRange \http_status_in_range; use function FrankDeJonge \ HttpStatusRange \http_status_not_in_range; use const FrankDeJonge \ HttpStatusRange \ HTTP_SUCCESS ; $ response = $ httpClient -> get ( '/something' ); if ( http_status_in_range ( $ response -> getStatusCode (), HTTP_SUCCESS )) { /
【文件预览】:
http-status-in-range-master
----src()
--------functions.php(429B)
----composer.json(481B)