The HttpResponse
PHP 手册

HttpResponse::setData

(PECL pecl_http >= 0.10.0)

HttpResponse::setDataSet data

说明

static bool HttpResponse::setData ( mixed $data )

Set the data to be sent.

Note: Previously calculated or defined ETag and Last-Modified will be recalculated and redefined.

参数

data

data to send

返回值

如果成功则返回 TRUE,失败则返回 FALSE

参见


The HttpResponse
PHP 手册