The HttpResponse
PHP Manual

HttpResponse::setETag

(PECL pecl_http >= 0.10.0)

HttpResponse::setETagSet ETag

说明

static bool HttpResponse::setETag ( string $etag )

Set a custom ETag. Use this only if you know what you're doing.

参数

etag

unquoted string as parameter containing the ETag

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.

参见


The HttpResponse
PHP Manual