English | 简体中文 | 繁體中文
查询

Swoole\Http\Response::status()函数—用法及示例

「 设置HTTP响应的状态码。 」


适用版本(PECL swoole >= 1.9.0)

Swoole\Http\Response::status — 设置HTTP响应的状态码。

说明
public Swoole\Http\Response::status(string $http_code): ReturnType

Set the status code of the HTTP response.

参数
http_code
返回值
补充纠错
热门PHP函数
分享链接