首页 话题 小组 问答 好文 用户 我的社区 域名交易 唠叨

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

发布于 2025-05-08 22:59:49
0
43

适用版本(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
返回值
评论
一个月内的热帖推荐
啊龙
Lv.1普通用户

9545

帖子

31

小组

3242

积分

赞助商广告
站长交流