Swoole\Http\Response
PHP Manual

Swoole\Http\Response::header

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Swoole\Http\Response::headerSet the HTTP response headers.

说明

public void Swoole\Http\Response::header ( string $key , string $value [, string $ucwords ] )

参数

key

value

ucwords

返回值


Swoole\Http\Response
PHP Manual