Swoole\Http\Response::header()设置HTTP响应头适用版本(PECL swoole >= 1.9.0) Swoole\Http\Response::header — 设置HTTP响应头。 说明 public Swoole\Http\Response::header(string $key, string $value, string $ucwords = ?): void 参数 key value ucwords 返回值