首页 诗词 名句 诗人 飞花令 诗单 诗词游戏 古籍 文学 成语 字典 词典 谜语 教育学习
查询

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函数
在线组词